Vuo
1.2.5
|
VuoFileUtilitiesCocoa implementation.
Functions | |
void | VuoFileUtilitiesCocoa_moveFileToTrash (string filePath) |
Moves the specified file to the user's trash folder. | |
string | VuoFileUtilitiesCocoa_makeTmpDirOnSameVolumeAsPath (string path) |
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. | |
void | VuoFileUtilitiesCocoa_focusProcess (pid_t pid, bool force) |
Attempts to focus the specified pid (i.e., bring all its windows to the front and make one of them key). | |
void VuoFileUtilitiesCocoa_focusProcess | ( | pid_t | pid, |
bool | force | ||
) |
Attempts to focus the specified pid
(i.e., bring all its windows to the front and make one of them key).
This function may only be called on the main thread.
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. |