big upgrades to upgrade system

This commit is contained in:
2025-10-05 11:11:54 -07:00
parent 0edb4b50d2
commit 537bdf1ad7
20 changed files with 3310 additions and 97 deletions

View File

@@ -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