Vuo  1.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoFileUtilitiesCocoa.hh File Reference

Description

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.
 

Function Documentation

size_t VuoFileUtilitiesCocoa_getAvailableSpaceOnVolumeContainingPath ( string  path)

Returns the available space, in bytes, on the volume containing the specified path.

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