mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix crash when copying empty folders + misc formatting fixes (#65)
This commit is contained in:
parent
7e7ae6159a
commit
96b487781a
@ -96,7 +96,7 @@ int fcopy(const char *sourcePath, const char *destinationPath)
|
||||
chdir(sourcePath);
|
||||
vector<DirEntry> dirContents;
|
||||
getDirectoryContents(dirContents);
|
||||
DirEntry* entry = &dirContents.at(1);
|
||||
DirEntry* entry = NULL;
|
||||
|
||||
mkdir(destinationPath, 0777);
|
||||
for (int i = 1; i < ((int)dirContents.size()); i++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user