|
Adun
0.83
|
|
Functions | |
| BOOL | AdCheckDirectory (NSString *directoryPath, NSError **error) |
| BOOL | AdCreateParallelSharedDirectory (NSString *directoryPath, NSError **error) |
Convience functions for working with directories
| BOOL AdCheckDirectory | ( | NSString * | directoryPath, |
| NSError ** | error | ||
| ) |
Returns YES if a directory exists at directoryPath. If it doesn't returns NO and sets error if its provided.
| BOOL AdCreateParallelSharedDirectory | ( | NSString * | directoryPath, |
| NSError ** | error | ||
| ) |
Function for creating a single directory that will be used by all nodes in a parallel process. It ensures that no node exits the function before the directory is accesible by them.
In a parallel environment, where process access a shared filesystem, a directory creation even on one node can take time to propogate to other nodes. If this situation isn't accounted for then a node may attempt to write to a directory that doesn't exist yet.
In serial this method does nothing and always returns NO.
1.8.1