Utility class for handling files
More...
Utility class for handling files
| static bool SmartLocalization.Editor.FileUtility.Delete |
( |
string |
fullPath | ) |
|
|
static |
Deletes a file
- Parameters
-
| fullPath | The full path to the file to delete |
- Returns
- If the file was deleted
| static bool SmartLocalization.Editor.FileUtility.Exists |
( |
string |
fullPath | ) |
|
|
static |
Checks if a file exists
- Parameters
-
| fullPath | The path to the file |
- Returns
- If the file exists
| static bool SmartLocalization.Editor.FileUtility.ExistsRelative |
( |
string |
relativePath | ) |
|
|
static |
Appends the relativePath to Application.dataPath
| static string SmartLocalization.Editor.FileUtility.GetFileExtension |
( |
string |
fileName, |
|
|
string |
relativeFolderPath |
|
) |
| |
|
static |
Gets the file extension for the file at the specified path
- Parameters
-
| fileName | The file name without the extension. If the full name is for example hello.png, this parameter should be only "hello" |
| relativeFolderPath | The relative path to the folder containing the asset file relativeFolderPath should be relative to the project folder. Like: "Assets/MyTextures/". |
| static string SmartLocalization.Editor.FileUtility.GetFileExtension |
( |
string |
fullPath | ) |
|
|
static |
Gets a file extension of a file
- Parameters
-
| fullPath | The full path to the file |
- Returns
- The file extension of a file
| static bool SmartLocalization.Editor.FileUtility.ReadFromFile |
( |
string |
fullPath, |
|
|
out string |
data |
|
) |
| |
|
static |
Reads string data from a file
- Parameters
-
| fullPath | The full path to the file to read from |
| data | The data that was read from the file |
- Returns
- If the operation was a success
| static string SmartLocalization.Editor.FileUtility.RemoveExtension |
( |
string |
fullPath | ) |
|
|
static |
Returns the file name without the extension
- Parameters
-
| fullPath | The full path to the file |
- Returns
- The file name without the extension
| static bool SmartLocalization.Editor.FileUtility.WriteToFile |
( |
string |
fullPath, |
|
|
string |
data |
|
) |
| |
|
static |
Writes string data to a file
- Parameters
-
| fullPath | The full path to the file to write to |
| data | The string data to write |
- Returns
- If the writing operation was a success
The documentation for this class was generated from the following file:
- Assets/SmartLocalization/Scripts/Editor/FileSystem/FileUtility.cs