| 
    TGUI
    0.9.5
    
   | 
 
Helper functionality for filesystem access. More...
#include <TGUI/Filesystem.hpp>
Classes | |
| struct | FileInfo | 
| Information about a file or directory, used to return data from the listFilesInDirectory function.  More... | |
| class | Path | 
| Object to represent paths on a filesystem.  More... | |
Static Public Member Functions | |
| static bool | directoryExists (const Path &path) | 
| Checks if a directory exists.   | |
| static bool | directoryExists (const String &path) | 
| Checks if a directory exists.   | |
| static bool | fileExists (const Path &path) | 
| Checks if a file exists.   | |
| static bool | fileExists (const String &path) | 
| Checks if a file exists.   | |
| static bool | createDirectory (const Path &path) | 
| Create a directory.   | |
| static bool | createDirectory (const String &path) | 
| Create a directory.   | |
| static Path | getHomeDirectory () | 
| Returns the home directory.   | |
| static Path | getCurrentWorkingDirectory () | 
| Returns the current working directory.   | |
| static Path | getLocalDataDirectory () | 
| Returns the directory to store application data.   | |
| static std::vector< FileInfo > | listFilesInDirectory (const Path &path) | 
| Returns a list of all files and folders inside a given directory.   | |
Helper functionality for filesystem access.
When TGUI is built with c++17 support then std::filesystem is used on newer compilers. Otherwise, POSIX or Windows-specific code is used to implement the functionality.
      
  | 
  static | 
Create a directory.
| path | Path to the directory to create | 
This function will fail if the parent directory doesn't exist. It won't try to recursively create the directory.
      
  | 
  inlinestatic | 
Create a directory.
| path | Path to the directory to create | 
This function will fail if the parent directory doesn't exist. It won't try to recursively create the directory.
      
  | 
  static | 
Checks if a directory exists.
| path | Path to the directory to check | 
      
  | 
  inlinestatic | 
Checks if a directory exists.
| path | Path to the directory to check | 
      
  | 
  static | 
Checks if a file exists.
| path | Path to the file to check | 
      
  | 
  inlinestatic | 
Checks if a file exists.
| path | Path to the file to check | 
      
  | 
  static | 
Returns the current working directory.
      
  | 
  static | 
Returns the home directory.
      
  | 
  static | 
Returns the directory to store application data.
On Windows, this returns the value of LOCALAPPDATA% On macOS, this returns $HOME/Library/Application Support On Linux and other platforms, this returns $HOME/.local/share
Returns a list of all files and folders inside a given directory.
| path | Path in which all directories and files should be listed | 
 1.9.8