string Path_4 = ComponentsToPath(PathList_3);
string Path_5 = PathMakeAbsolute(Path_4);
+
+ fprintf(stderr, "PathMakeAbsolute in: %s\n", Path_4.c_str());
+ fprintf(stderr, "PathMakeAbsolute out: %s\n", Path_5.c_str());
+
string Path_6 = ComponentsToAbsolutePath(PathList_3);
assert(Path_3 == Path_6);
assert(PathsAreEquivalent(Path_3, Path_6));
FindInPaths(PathMatchAny(), InList, OutList);
PathList_t::iterator pi;
- for ( pi = OutList.begin(); pi != OutList.end(); pi++ )
- cerr << *pi << endl;
+ if ( false )
+ {
+ for ( pi = OutList.begin(); pi != OutList.end(); pi++ )
+ cerr << *pi << endl;
+ }
+ else
+ {
+ cerr << OutList.size() << ( ( OutList.size() == 1 ) ? " file" : " files" ) << endl;
+ }
cerr << "----------------------------------" << endl;
OutList.clear();
FreeSpaceForPath("/", free_space, total_space);
cerr << "Free space: " << free_space << endl;
cerr << "Total space: " << total_space << endl;
+ cerr << "Used space: " << ( (total_space - free_space ) / float(total_space) ) << endl;
cerr << "OK" << endl;