borg/attic/platform.py

17 lines
483 B
Python
Raw Normal View History

import sys
2014-04-13 18:26:46 +00:00
if sys.platform.startswith('linux'):
2014-04-13 18:26:46 +00:00
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':
2014-05-03 13:10:11 +00:00
from attic.platform_darwin import acl_get, acl_set, API_VERSION
2014-04-13 18:26:46 +00:00
else:
API_VERSION = 2
def acl_get(path, item, st, numeric_owner=False):
2014-04-13 18:26:46 +00:00
pass
2014-04-13 18:26:46 +00:00
def acl_set(path, item, numeric_owner=False):
pass