aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFileManagerAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFileManagerAdditions.m')
-rw-r--r--Source/SPFileManagerAdditions.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPFileManagerAdditions.m b/Source/SPFileManagerAdditions.m
index 22becf92..39cf9f85 100644
--- a/Source/SPFileManagerAdditions.m
+++ b/Source/SPFileManagerAdditions.m
@@ -147,4 +147,13 @@ NSString* const DirectoryLocationDomain = @"DirectoryLocationDomain";
}
++ (NSString *)temporaryDirectory
+{
+ NSString *tempDir = NSTemporaryDirectory();
+ if (!tempDir) {
+ tempDir = @"/tmp";
+ }
+ return tempDir;
+}
+
@end