X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Ffilename.cpp;h=843b286cf099bf0fcdd0a1fbfe6e74933b2c7862;hb=39dbe2cabfc181def8903f6009ed967ad2dc1d9b;hp=4abca2ade98b462c6f75404f1e34baf54fd0b6d6;hpb=e16e899f1a75d8c4df9d36ffac2d8d2d401c4114;p=feisty_meow.git diff --git a/nucleus/library/filesystem/filename.cpp b/nucleus/library/filesystem/filename.cpp index 4abca2ad..843b286c 100644 --- a/nucleus/library/filesystem/filename.cpp +++ b/nucleus/library/filesystem/filename.cpp @@ -239,12 +239,12 @@ void filename::canonicalize() // style of path. bool inject_root = false; // assume we don't need to do anything. -LOG(astring("before root injection: ") + raw()); +//LOG(astring("before root injection: ") + raw()); // condition here just checks if the path is only the root. if ( (length() == 1) && separator(get(0)) ) { inject_root = true; } -if (inject_root) LOG("decided to inject root since path is '/'."); +//if (inject_root) LOG("decided to inject root since path is '/'."); // condition is looking for first character being a slash, and second char as alphanumeric or dash or underscore. // we will currently fail detecting freaky paths that don't start off with alphanumeric or one of that small set of special chars. @@ -252,17 +252,16 @@ if (inject_root) LOG("decided to inject root since path is '/'."); && separator(get(0)) && ( textual::parser_bits::is_alphanumeric(get(1)) || ('-' == get(1)) || ('_' == get(1)) ) ) { inject_root = true; -if (inject_root) LOG(astring("decided to inject root since path is compatible: ") + *this); +//if (inject_root) LOG(astring("decided to inject root since path is compatible: ") + *this); } -LOG(astring("after second phase root injection: ") + raw()); +//LOG(astring("after second phase root injection: ") + raw()); if (inject_root) { // inject the actual path to the unix root in front, if we know it. // if we don't know it, then a default path that's unlikely to work is idiotically plugged in. insert(0, FEISTY_MEOW_VIRTUAL_UNIX_ROOT); -///nope configuration::application_configuration::get_virtual_unix_root()); -LOG(astring("turned cygdrive path string into: ") + raw()); +//LOG(astring("turned cygdrive path string into: ") + raw()); } #endif