quilt/utils.py
def copy(self, dest):
        """ Copy file to destination """
        if isinstance(dest, File):
            dest_dir = dest.get_directory()
            dest_dir.create()
            dest = dest.filename
        elif isinstance(dest, Directory):
            dest = dest.dirname

        shutil.copy2(self.filename, dest)
def copy(self, dest):
        """ Copy file to destination """
        if isinstance(dest, File):
            dest_dir = dest.get_directory()
            dest_dir.create()
            dest = dest.filename
        elif isinstance(dest, Directory):
            dest = dest.dirname

        shutil.copy2(self.filename, dest)
def copy ( self , dest ) : if isinstance ( dest , File ) : dest_dir = dest . get_directory ( ) dest_dir . create ( ) dest = dest . filename elif isinstance ( dest , Directory ) : dest = dest . dirname shutil . copy2 ( self . filename , dest )
Copy file to destination
Copy file to destination