Smart Localization  2.3
SmartLocalization.Editor.DirectoryUtility Class Reference

Utility class for handling Directories More...

Static Public Member Functions

static bool Exists (string fullPath)
 Checks if a directory exists More...
 
static bool ExistsRelative (string relativePath)
 Checks if a directory exists. Appends the relativePath to Application.dataPath More...
 
static string[] GetFiles (string fullPath)
 Returns the names of files(including their paths) in the directory More...
 
static string[] GetFilesRelative (string relativePath)
 Appends the relativePath to Application.dataPath More...
 
static void DeleteAllFilesAndFolders (string folderPath, bool recursive=true, bool isTop=true)
 
static bool Create (string fullPath)
 Creates a directory More...
 
static bool CheckAndCreate (string fullPath)
 Checks the folder and creates it if it does not exist, only returns false if the directory failed to create More...
 
static bool CreateRelative (string relativePath)
 Appends the relativePath to Application.dataPath More...
 

Detailed Description

Utility class for handling Directories

Member Function Documentation

static bool SmartLocalization.Editor.DirectoryUtility.CheckAndCreate ( string  fullPath)
static

Checks the folder and creates it if it does not exist, only returns false if the directory failed to create

static bool SmartLocalization.Editor.DirectoryUtility.Create ( string  fullPath)
static

Creates a directory

Parameters
fullPathThe path where the directory should be created
Returns
If the directory was created
static bool SmartLocalization.Editor.DirectoryUtility.CreateRelative ( string  relativePath)
static

Appends the relativePath to Application.dataPath

static bool SmartLocalization.Editor.DirectoryUtility.Exists ( string  fullPath)
static

Checks if a directory exists

Parameters
fullPathThe full path to the directory
Returns
If the directory exists
static bool SmartLocalization.Editor.DirectoryUtility.ExistsRelative ( string  relativePath)
static

Checks if a directory exists. Appends the relativePath to Application.dataPath

static string [] SmartLocalization.Editor.DirectoryUtility.GetFiles ( string  fullPath)
static

Returns the names of files(including their paths) in the directory

static string [] SmartLocalization.Editor.DirectoryUtility.GetFilesRelative ( string  relativePath)
static

Appends the relativePath to Application.dataPath


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