-
Notifications
You must be signed in to change notification settings - Fork 56
File
chrisd1100 edited this page Aug 25, 2022
·
2 revisions
Simple filesystem helpers.
These functions are not intended for optimized IO or large files, they are convenience functions that simplify common filesystem operations.
Name | Brief |
---|---|
MTY_ReadFile | Read the entire contents of a file. |
MTY_WriteFile | Write a buffer to a file. |
MTY_WriteTextFile | Write formatted text to a file. |
MTY_AppendTextToFile | Append formatted text to a file. |
MTY_DeleteFile | Delete a file. |
MTY_FileExists | Check if a file exists. |
MTY_Mkdir | Create a directory with subdirectories. |
MTY_JoinPath | Join two components of a path using the appropriate delimiter. |
MTY_CopyFile | Copy a file. |
MTY_MoveFile | Move a file. |
MTY_GetDir | Get a special directory on the filesystem. |
MTY_GetFileName | Parse a path and extract the file name with or without the extension. |
MTY_GetFileExtension | Parse a path and extract the file extension. |
MTY_GetPathPrefix | Get all but the final component of a path. |
MTY_LockFileCreate | Create an MTY_LockFile for signaling resource ownership across processes. |
MTY_LockFileDestroy | Destroy an MTY_LockFile . |
MTY_GetFileList | Get a list of all files and directories contained in a path. |
MTY_FreeFileList | Free a file list returned by MTY_GetFileList . |
Name | Brief |
---|---|
MTY_FileDesc | File properties. |
MTY_FileList | A list of files. |
Name | Brief |
---|---|
MTY_Dir | Special directories on the filesystem. |
MTY_FileMode | File shared access modes. |
Name | Value | Details |
---|---|---|
MTY_PATH_MAX |
1280 |
Maximum size of a full path used internally by libmatoya . |
MTY_FILE_MAX |
0x40000000 |
Maximum size of a file that can be read by libmatoya . |