Repository URL to install this package:
|
Version:
5.0.16 ▾
|
"""
Helpers for filesystem related routines.
"""
from oslo_log import log as logging
from s3fuse import utils as fs
import s3fuse.privsep
LOG = logging.getLogger(__name__)
@s3fuse.privsep.sys_admin_pctxt.entrypoint
def mount(fstype, device, mountpoint, options, timeout=0):
fs.mount(fstype, device, mountpoint, options, timeout)
@s3fuse.privsep.sys_admin_pctxt.entrypoint
def umount(mountpoint, options, timeout=0):
fs.umount(mountpoint, options, timeout)
@s3fuse.privsep.sys_admin_pctxt.entrypoint
def chown(path, options=[]):
fs.chown(path, options)
@s3fuse.privsep.sys_admin_pctxt.entrypoint
def mkdir(dir_path, options=[]):
fs.mkdir(dir_path, options)
@s3fuse.privsep.sys_admin_pctxt.entrypoint
def copy(source, target, options=[]):
fs.copy(source, target, options)
@s3fuse.privsep.sys_admin_pctxt.entrypoint
def remove(path, options=[]):
fs.remove(path, options)