1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 14:41:43 +00:00
borg/attic/platform.py
Thomas Waldmann 80dad2df61 use sys.platform everywhere, fixes #188
os.uname is UNIX-only, sys.platform is portable.

note:
- this doesn't implicate attic will now work on windows.
- windows is untested / unsupported and there might be a lot of other issues left.
- attic's xattr module already used sys.platform, so this is better for internal consistency also.
2015-04-19 23:54:44 +02:00

15 lines
482 B
Python

import sys
if sys.platform.startswith('linux'):
from attic.platform_linux import acl_get, acl_set, API_VERSION
elif sys.platform.startswith('freebsd'):
from attic.platform_freebsd import acl_get, acl_set, API_VERSION
elif sys.platform == 'darwin':
from attic.platform_darwin import acl_get, acl_set, API_VERSION
else:
API_VERSION = 2
def acl_get(path, item, st, numeric_owner=False):
pass
def acl_set(path, item, numeric_owner=False):
pass