الفرق بين المراجعتين ل"Python/pathlib/Path/is mount"
اذهب إلى التنقل
اذهب إلى البحث
(أنشأ الصفحة ب'== التابع Path.cwd == يعيد كائن مسار جديدًا يمثّل المسار الحالي (بشكل مشابه للتابع os.getcwd)<syntaxhighlight lan...') |
|||
سطر 1: | سطر 1: | ||
− | == | + | == التابع Path.is_mount== |
− | يعيد | + | يعيد هذا التابع القيمة المنطقية <code>True</code> إذا كان المسار هو نقطة تثبيت [https://unix.stackexchange.com/questions/3247/understanding-mount-as-a-concept-in-the-os (mount point)] . |
− | > | ||
− | + | New in version 3.7. | |
− | + | Return True if the path is a mount point: a point in a file system where a different file system has been mounted. On POSIX, the function checks whether path’s parent, path/.., is on a different device than path, or whether path/.. and path point to the same i-node on the same device — this should detect mount points for all Unix and POSIX variants. Not implemented on Windows. | |
− |
مراجعة 21:40، 29 يوليو 2018
التابع Path.is_mount
يعيد هذا التابع القيمة المنطقية True
إذا كان المسار هو نقطة تثبيت (mount point) .
New in version 3.7.
Return True if the path is a mount point: a point in a file system where a different file system has been mounted. On POSIX, the function checks whether path’s parent, path/.., is on a different device than path, or whether path/.. and path point to the same i-node on the same device — this should detect mount points for all Unix and POSIX variants. Not implemented on Windows.