Vuo  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Functions
VuoFileUtilitiesCocoa.mm File Reference

Description

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).
 

Function Documentation

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.

Exceptions
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).

Exceptions
std::runtime_error
void VuoFileUtilitiesCocoa_moveFileToTrash ( string  filePath)

Moves the specified file to the user's trash folder.

Exceptions
std::runtime_errorThe file couldn't be moved.