void
| fiftyoneDegreesFilePoolRelease (fiftyoneDegreesFilePool *pool)
Releases the file handles contained in the pool and frees any internal memory used by the pool. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFileOpen (const char *fileName, FILE **handle)
Opens the file path provided placing the file handle in the handle parameter. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFileWrite (const char *fileName, const void *data, const size_t length)
Writes binary data to the file path provided, closing the file once finished. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFileCopy (const char *source, const char *destination)
Copy a file from one location to another. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFileDelete (const char *fileName)
Delete a file from the file system. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFileCreateDirectory (const char *pathName)
Creates a directory with the specified path, and returns the result of the operation. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFileGetPath (const char *dataFolderName, const char *fileName, char *destination, size_t size)
Iterates up the folders from the current working directory until a file in the sub folder dataFolderName with the name fileName is found which can be opened. More...
|
bool
| fiftyoneDegreesFileGetExistingTempFile (const char *masterFile, const char **paths, int count, long bytesToCompare, const char *destination)
Gets the path to a temporary file which is an exact copy of the master file if one exists. More...
|
int
| fiftyoneDegreesFileDeleteUnusedTempFiles (const char *masterFileName, const char **paths, int count, long bytesToCompare)
Finds all the temporary files which is an exact copy of the master file if any exist. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFileAddTempFileName (const char *masterFileName, char *destination, size_t nameStart, size_t length)
Create a temporary file name and add it to the destination. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFileNewTempFile (const char *masterFile, const char **paths, int count, char *destination, size_t length)
Create a temporary file containing a copy of the master file using the first writable path in the list of paths provided. More...
|
DEPRECATED fiftyoneDegreesStatusCode
| fiftyoneDegreesFileCreateTempFile (const char *masterFile, const char **paths, int count, const char *destination)
[DEPRECATED - Use fiftyoneDegreesFileNewTempFile instead] Create a temporary file containing a copy of the master file using the first writable path in the list of paths provided. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFilePoolInit (fiftyoneDegreesFilePool *filePool, const char *fileName, uint16_t concurrency, fiftyoneDegreesException *exception)
Initialises the pool with a stack of open read only file handles all associated with the file name. More...
|
fiftyoneDegreesFileHandle *
| fiftyoneDegreesFileHandleGet (fiftyoneDegreesFilePool *filePool, fiftyoneDegreesException *exception)
Retrieves a read only open file handle from the pool. More...
|
void
| fiftyoneDegreesFileHandleRelease (fiftyoneDegreesFileHandle *handle)
|
long
| fiftyoneDegreesFileGetSize (const char *fileName)
Returns the size of a file in bytes, or -1 if the file does not exist or cannot be accessed. More...
|
fiftyoneDegreesStatusCode
| fiftyoneDegreesFileReadToByteArray (const char *fileName, fiftyoneDegreesMemoryReader *reader)
Reads the contents of a file into memory. More...
|
void
| fiftyoneDegreesFilePoolReset (fiftyoneDegreesFilePool *filePool)
Resets the pool without releasing any resources. More...
|
const char *
| fiftyoneDegreesFileGetFileName (const char *filePath)
Gets the last, file name, segment of the full file path. More...
|