الفرق بين المراجعتين ل"Python/shutil"

من موسوعة حسوب
اذهب إلى التنقل اذهب إلى البحث
(إنشاء مبدئي)
 
ط
 
سطر 1: سطر 1:
  
The <code>shutil</code> module offers a number of high-level operations on files and collections of files. In particular, functions are provided which support file copying and removal. For operations on individual files, see also the <code>os</code>module.
+
تقدم هذه الوحدة العديد من العمليات عالية المستوى على الملفات وتجمّعات الملفات، وتقدم على وجه الخصوص توابع لنسخ وحذف الملفات. يمكنك الرجوع إلى الوحدة [[Python/os|os]] لعمليات على الملفات المفردة.
 
 
Warning 
 
 
 
Even the higher-level file copying functions (<code>shutil.copy()</code>, <code>shutil.copy2()</code>) cannot copy all file metadata.
 
 
 
On POSIX platforms, this means that file owner and group are lost as well as ACLs. On Mac OS, the resource fork and other metadata are not used. This means that resources will be lost and file type and creator codes will not be correct. On Windows, file owners, ACLs and alternate data streams are not copied.
 
 
 
== 11.10.1. Directory and files operations ==
 

المراجعة الحالية بتاريخ 18:48، 23 سبتمبر 2018

تقدم هذه الوحدة العديد من العمليات عالية المستوى على الملفات وتجمّعات الملفات، وتقدم على وجه الخصوص توابع لنسخ وحذف الملفات. يمكنك الرجوع إلى الوحدة os لعمليات على الملفات المفردة.