[nostalgia] Update for Ox changes

This commit is contained in:
2021-05-29 15:04:59 -05:00
parent ae62f89fe8
commit 0099129a19
4 changed files with 29 additions and 21 deletions

View File

@@ -40,7 +40,7 @@ static ox::Error transformClaw(ox::FileSystem *dest, const ox::String &path) noe
for (const auto &name : fileList) {
const auto filePath = path + name;
oxRequire(stat, dest->stat(filePath.c_str()));
if (stat.fileType == ox::FileType_Directory) {
if (stat.fileType == ox::FileType::Directory) {
const auto dir = path + name + '/';
oxReturnError(transformClaw(dest, dir));
} else {
@@ -83,7 +83,7 @@ static ox::Error copy(ox::FileSystem *src, ox::FileSystem *dest, const ox::Strin
}
oxOutf("reading {}\n", name);
oxRequire(stat, src->stat(currentFile.c_str()));
if (stat.fileType == ox::FileType_Directory) {
if (stat.fileType == ox::FileType::Directory) {
oxReturnError(dest->mkdir(currentFile.c_str(), true));
oxReturnError(copy(src, dest, currentFile + '/'));
} else {