mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
catch next windows related issue
This commit is contained in:
parent
d09c4e0819
commit
a4698a4475
1 changed files with 5 additions and 2 deletions
|
@ -324,6 +324,9 @@ def path_permissions(path):
|
|||
|
||||
|
||||
def path_permissions_as_string(path):
|
||||
try:
|
||||
pp = path_permissions(path)
|
||||
s = "path=%r owner=%s group=%s mode=%o" % (path, pp[0], pp[1], pp[2])
|
||||
except NotImplementedError:
|
||||
s = "path=%r owner=UNKNOWN(unsupported on this system)" % (path)
|
||||
return s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue