示例#1
0
文件: fs.py 项目: hudak/docker-build
def chown(path, user, group, recursive=False):
    cmd = ['chown']
    if recursive:
        cmd.append('-R')
    cmd.extend([user + ':' + group, path])
    call_and_check(cmd, 'Unable to set ownership of ' + path)
示例#2
0
文件: fs.py 项目: hudak/docker-build
def cp(fromPath, toPath, recursive = False):
  cmd = ['cp']
  if recursive:
    cmd.append('-r')
  cmd.extend([fromPath, toPath])
  call_and_check(cmd, 'Unable to copy ' + fromPath + ' to ' + toPath)
示例#3
0
文件: fs.py 项目: hudak/docker-build
def cp(fromPath, toPath, recursive=False):
    cmd = ['cp']
    if recursive:
        cmd.append('-r')
    cmd.extend([fromPath, toPath])
    call_and_check(cmd, 'Unable to copy ' + fromPath + ' to ' + toPath)
示例#4
0
文件: fs.py 项目: hudak/docker-build
def chown(path, user, group, recursive = False):
  cmd = ['chown'] 
  if recursive:
    cmd.append('-R')
  cmd.extend([user + ':' + group, path])
  call_and_check(cmd, 'Unable to set ownership of ' + path)