big upgrades to upgrade system
This commit is contained in:
@@ -85,6 +85,19 @@ class GameVFSHandler(object):
|
||||
osfs_dest.makedirs(pth_file.parent.as_posix(), recreate=True)
|
||||
fs.copy.copy_file(self.vfs, filepath, dest, filepath)
|
||||
return (pth_dest / filepath).as_posix()
|
||||
|
||||
def copy_dir(self, dirpath, dest=None):
|
||||
if not dest:
|
||||
self.osfs_temp.makedirs(pathlib.Path(dirpath).parent.as_posix(), recreate=True)
|
||||
fs.copy.copy_dir(self.vfs, dirpath, self.osfs_temp, dirpath)
|
||||
return self.pth_temp / dirpath
|
||||
else:
|
||||
pth_dest = pathlib.Path(dest)
|
||||
pth_file = pathlib.Path(dirpath)
|
||||
osfs_dest = fs.osfs.OSFS(dest)
|
||||
osfs_dest.makedirs(pth_file.parent.as_posix(), recreate=True)
|
||||
fs.copy.copy_dir(self.vfs, dirpath, dest, dirpath)
|
||||
return (pth_dest / dirpath).as_posix()
|
||||
|
||||
## \brief Primary VFS handler.
|
||||
# \internal
|
||||
|
Reference in New Issue
Block a user