8 #ifndef K_FIRESYNC_STORAGE_H
9 #define K_FIRESYNC_STORAGE_H
317 #include <kFireSync/Client/kStorage.x.h>
kStatus kStorage_UserDirectory(kStorage storage, kChar *directory, kSize capacity)
Gets the directory that should be used for application configuration/resource files.
kStatus kStorage_ListDirectories(kStorage storage, const kChar *directory, kArrayList directories)
Lists the sub-directories in the specified directory.
kStatus kStorage_DownloadToStream(kStorage storage, const kChar *filePath, kStream stream, kCallbackFx progress, kPointer context)
Reads the contents of a storage file into a local stream.
kStatus kStorage_DownloadToFile(kStorage storage, const kChar *sourcePath, const kChar *destPath, kCallbackFx progress, kPointer context)
Copies a file from node storage to the specified local destination.
kStatus kStorage_ListFiles(kStorage storage, const kChar *directory, kArrayList files)
Lists the files in the specified directory.
kSize kStorage_FileSize(kStorage storage, const kChar *filePath)
Gets the size of the specified file.
Essential declarations related to FireSync nodes.
kStatus kStorage_UploadFromBuffer(kStorage storage, const kChar *filePath, const void *buffer, kSize size, kCallbackFx progress, kPointer context)
Write the contents of a memory buffer to a storage module file.
kStatus kStorage_SystemDirectory(kStorage storage, kChar *directory, kSize capacity)
Gets the directory used for executables and system configuration files.
kStatus kStorage_CreateDirectory(kStorage storage, const kChar *directory)
Creates a directory at the specified location.
kStatus kStorage_DownloadToBuffer(kStorage storage, const kChar *filePath, void *buffer, kSize capacity, kCallbackFx progress, kPointer context)
Reads the contents of a storage file into a memory buffer.
kBool kStorage_FileExists(kStorage storage, const kChar *filePath)
Checks that the specified file exists.
kStatus kStorage_ListEntriesEx(kStorage storage, const kChar *directory, kArrayList entries)
Retrieves information about each file system entry within the specified directory.
Represents node file services.
kStatus kStorage_Delete(kStorage storage, const kChar *filePath)
Deletes the specified file.
kStatus kStorage_Wipe(kStorage storage)
Deletes all user and temp files.
kStatus kStorage_TempDirectory(kStorage storage, kChar *directory, kSize capacity)
Gets the directory that should be used for temporary files.
kStatus kStorage_UploadFromFile(kStorage storage, const kChar *sourcePath, const kChar *destPath, kCallbackFx progress, kPointer context)
Copies the specified local file into node storage.
kStatus kStorage_DeleteDirectory(kStorage storage, const kChar *directory)
Deletes the specified directory, including all of its contents.
kStatus kStorage_Copy(kStorage storage, const kChar *sourcePath, const kChar *destPath, kCallbackFx progress, kPointer context)
Copies a file from one location to another within sensor storage.
kStatus kStorage_UploadFromStream(kStorage storage, const kChar *filePath, kStream stream, kSize size, kCallbackFx progress, kPointer context)
Write the contents of a local stream to a storage file, with progress updates.
kStatus kStorage_ListEntries(kStorage storage, const kChar *directory, kArrayList entries)
Lists the file system entries in the specified directory.