stdStr Path::getFullPath(const stdStr &fileSpec) { const size_t BufSize = 256; TCHAR buffer[BufSize]; TCHAR filebuffer[BufSize]; // don't use but GetFullPathName will TCHAR* name = filebuffer; ::GetFullPathName(fileSpec.c_str(),BufSize, buffer, &name); return stdStr(buffer); }
bool Directory::SetCurrentDirectory(const stdStr& path) { return (::SetCurrentDirectory(path.c_str()) != 0); }
bool Directory::RemoveDirectory(const stdStr &path, bool confirm) { return (::RemoveDirectory(path.c_str()) != 0); }
bool Directory::CreateDirectory(const stdStr& path) { return (::CreateDirectory(path.c_str(),0) != 0); }
virtual void dirsProc(const stdStr &dir) { stdOut << TEXT("\n ") << dir.c_str() << endl; }
void defProc::dirsProc(const stdStr& dir) { stdOut << TEXT("\n ") << dir.c_str() << endl; }