X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Fdirectory.cpp;h=052c10bf994486a7148dc1fdc9ec5dad5671d5bb;hb=2e27570475859bacfbe74dfb14ab2c295f016df6;hp=8e7789521e434281fb47837dcea7477efc403d1e;hpb=e077c4de15dac0c54a37cef7ccb376e582c09ac8;p=feisty_meow.git diff --git a/nucleus/library/filesystem/directory.cpp b/nucleus/library/filesystem/directory.cpp index 8e778952..052c10bf 100644 --- a/nucleus/library/filesystem/directory.cpp +++ b/nucleus/library/filesystem/directory.cpp @@ -209,9 +209,9 @@ bool directory::rescan() if (add_it && !fnmatch(_pattern->s(), file, 0)) { filename temp_name(*_path, file); if (!temp_name.is_normal()) { -#ifdef DEBUG_DIRECTORY +//#ifdef DEBUG_DIRECTORY LOG(astring("skipping abnormal file: ") + temp_name); -#endif +//#endif entry = readdir(dir); continue; // cannot be adding goofy named pipes etc; cannot manage those. } @@ -259,12 +259,13 @@ bool directory::recursive_create(const astring &directory_name) FUNCDEF("recursive_create"); filename dir(directory_name); string_array pieces; - dir.separate(pieces); + bool rooted; + dir.separate(rooted, pieces); for (int i = 0; i < pieces.length(); i++) { // check each location along the way. string_array partial = pieces.subarray(0, i); filename curr; - curr.join(partial); // this is our current location. + curr.join(rooted, partial); // this is our current location. // make sure, if we see a drive letter component, that we call it // a proper directory name. if (curr.raw()[curr.raw().end()] == ':')