Provide file promises from the mapping list. Perform various file sanitization in...
[enjoyable.git] / NSString+FixFilename.h
diff --git a/NSString+FixFilename.h b/NSString+FixFilename.h
new file mode 100644 (file)
index 0000000..0850e74
--- /dev/null
@@ -0,0 +1,19 @@
+//
+//  NSString+FixFilename.h
+//  Enjoyable
+//
+//  Created by Joe Wreschnig on 3/7/13.
+//
+//
+
+#import <Foundation/Foundation.h>
+
+@interface NSString (FixFilename)
+
+- (NSString *)stringByFixingPathComponent;
+    // Does various operations to make this string suitable for use as
+    // a single path component of a normal filename. Removes / and :
+    // characters and prepends a _ to avoid leading .s or an empty
+    // name.
+
+@end