Filesys.h
Directory & operator>>(std::string &str)
Equivalent to getNextName().
std::string FindFile(const std::string &name)
Searches for the file of the specified name. The search is done in the current directory and all sub ...
Directory QueryDirectory()
return all the object names in the current working directory as a directory instance. See the Directory object for more details. Special directories are not included
void ResetPosition()
Resets the reading position to the first name on the list.
int Size()
Returns the number of names contained within the directory.
bool ChangeDir(const std::string &)
Change to the specified directory. Returns true on success.
Definition: AssetID.h:37
bool IsFile(const std::string &obj)
Returns whether or nor obj is a file. PROTIP: if the Filesys::Object is not a file, it is most likely a directory!
std::string FindDirectory(const std::string &name)
Searches for the directory of the specified name. THe search is done in the current and all sub direc...
bool Query(const std::string &target)
Returns whether or not target exists.
bool CreateDir(const std::string &)
Creates a directory with the given name. The directory is relative to the current working directory...
std::string GetNextName()
Pulls the next directory name from the list. The order of the elements in the list depends on the ope...
bool GoToChild(const std::string &)
Change to the specified child directory. NOTICE: you only need to specify the name of the directory E...
std::vector< std::string > FindAllFiles(const std::string &name)
Similar to findFile, but returns a vector of paths. The paths coresponding to all instances of name t...