mirror of https://github.com/borgbackup/borg.git
Compare commits
2 Commits
b483d5a477
...
db58eae29c
Author | SHA1 | Date |
---|---|---|
Rayyan Ansari | db58eae29c | |
Rayyan Ansari | 32813e5962 |
|
@ -147,8 +147,8 @@ def is_utime_fully_supported():
|
||||||
else:
|
else:
|
||||||
open(filepath, "w").close()
|
open(filepath, "w").close()
|
||||||
try:
|
try:
|
||||||
os.utime(filepath, (1000, 2000), follow_symlinks=False)
|
os.utime(filepath, (1000, 2000), follow_symlinks=False if os.utime in os.supports_follow_symlinks else True)
|
||||||
new_stats = os.stat(filepath, follow_symlinks=False)
|
new_stats = os.stat(filepath, follow_symlinks=False if os.stat in os.supports_follow_symlinks else True)
|
||||||
if new_stats.st_atime == 1000 and new_stats.st_mtime == 2000:
|
if new_stats.st_atime == 1000 and new_stats.st_mtime == 2000:
|
||||||
return True
|
return True
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
Loading…
Reference in New Issue