예제 #1
0
 def move_to_local(self, dst=None, dir_perm=None, **kwargs):
     if dst:
         dst = add_scheme(_local_fs.abspath(get_path(dst)), "file")
     return FileSystemFileTarget.move_to(self,
                                         dst,
                                         dir_perm=dir_perm,
                                         **kwargs)
예제 #2
0
 def move_from_local(self, src=None, perm=None, dir_perm=None, **kwargs):
     src = add_scheme(self.fs.local_fs.abspath(get_path(src)), "file")
     return FileSystemFileTarget.move_from(self,
                                           src,
                                           perm=perm,
                                           dir_perm=dir_perm,
                                           **kwargs)
예제 #3
0
 def copy_to_local(self, dst=None, perm=None, dir_perm=None, **kwargs):
     if dst:
         dst = add_scheme(self.fs.local_fs.abspath(get_path(dst)), "file")
     dst = FileSystemFileTarget.copy_to(self,
                                        dst,
                                        perm=perm,
                                        dir_perm=dir_perm,
                                        **kwargs)
     return remove_scheme(dst)
예제 #4
0
 def copy_from_local(self, src=None, dir_perm=None, **kwargs):
     src = add_scheme(_local_fs.abspath(get_path(src)), "file")
     return FileSystemFileTarget.copy_from(self,
                                           src,
                                           dir_perm=dir_perm,
                                           **kwargs)
예제 #5
0
파일: base.py 프로젝트: meliache/law
 def move_to_local(self, dst=None, **kwargs):
     if dst:
         dst = add_scheme(self.fs.local_fs.abspath(get_path(dst)), "file")
     dst = FileSystemFileTarget.move_to(self, dst, **kwargs)
     return remove_scheme(dst)