Vuo
1.2.3
|
VuoFileUtilitiesCocoa interface.
Functions | |
void | VuoFileUtilitiesCocoa_moveFileToTrash (string filePath) |
Moves the specified file to the user's trash folder. | |
string | VuoFileUtilitiesCocoa_makeTmpDirOnSameVolumeAsPath (string onSameVolumeAsPath) |
Creates a new temporary directory, avoiding any name conflicts with existing files. | |
size_t | VuoFileUtilitiesCocoa_getAvailableSpaceOnVolumeContainingPath (string path) |
Returns the available space, in bytes, on the volume containing the specified path. | |
size_t VuoFileUtilitiesCocoa_getAvailableSpaceOnVolumeContainingPath | ( | string | path | ) |
Returns the available space, in bytes, on the volume containing the specified path.
path
should be an absolute POSIX path. Its last few path components needn't exist.
std::runtime_error |
string VuoFileUtilitiesCocoa_makeTmpDirOnSameVolumeAsPath | ( | string | path | ) |
Creates a new temporary directory, avoiding any name conflicts with existing files.
The temporary directory will be on the same filesystem as the specified path, to facilitate using rename()
(for example). onSameVolumeAsPath
needn't already exist.
Returns the path of the directory (without a trailing slash).
std::runtime_error |
void VuoFileUtilitiesCocoa_moveFileToTrash | ( | string | filePath | ) |
Moves the specified file to the user's trash folder.
std::runtime_error | The file couldn't be moved. |