FAST.Framework  1.0.0
Public Member Functions | Static Public Member Functions | List of all members
FDirectory Class Reference

#include <FDirectory.h>

Inheritance diagram for FDirectory:
Inheritance graph
[legend]
Collaboration diagram for FDirectory:
Collaboration graph
[legend]

Public Member Functions

 FDirectory (const FString &path)
 Constructor of directory object.
 
 FDirectory ()
 Constructor of directory object.
 
virtual ~FDirectory ()=default
 Destroy directory object.
 
Boolean Create () const
 Create new directory, if not exists.
 
FDirectory CreateSubDirectory (const FString &path) const
 Create new subdirectory, if not exists.
 
Boolean Delete (Boolean recursive=false) const
 Delete files and directory.
 
Boolean Exists () const
 Returns true if the directory exists, otherwise false.
 
Boolean MoveTo (const FString &path)
 Moves a directory instance and its contents to a new path.
 
FString Name () const
 Gets the name of this directory instance.
 
FString FullName () const
 Gets the path of this directory instance.
 
FDirectory Parent () const
 Gets the parent directory of a specified subdirectory.
 
FDateTime CreatedAt () const
 Returns the creation date and time of the specified file or directory.
 
FDateTime LastAccessAt () const
 Returns the date and time the specified file or directory was last accessed.
 
FDateTime LastWriteAt () const
 Returns the date and time the specified file or directory was last written to.
 
FList< FDirectoryDirectories () const
 Returns the subdirectories of the current directory.
 
FList< FFileFiles () const
 Returns a file list from the current directory.
 
const type_info & GetType () override
 Returns the type info over object.
 
FString GetName () const override
 Returns the name of object.
 
- Public Member Functions inherited from FObject
 FObject ()=default
 Constructor.
 
virtual ~FObject ()=default
 Destructor.
 

Static Public Member Functions

static Boolean Create (const FString &path)
 Create new directory, if not exists.
 
static Boolean Delete (const FString &path, Boolean recursive)
 Remove files into current directory.
 
static Boolean Exists (const FString &path)
 Returns true if the directory exists, otherwise false.
 
static Boolean MoveTo (const FString &oldPath, const FString &newPath)
 Moves a directory instance and its contents to a new path.
 
static FList< FDirectoryDirectories (const FString &path)
 Returns the subdirectories of the current directory.
 
static FList< FFileFiles (const FString &path)
 Returns a file list from the current directory.
 

Detailed Description

Exposes instance methods for creating, moving, and enumerating through directories and subdirectories


The documentation for this class was generated from the following files: