Functions
The following functions are available globally.
-
Extracts just the file name, no path or extension
Declaration
Objective-C
extern NSString *_Nullable DDExtractFileNameWithoutExtension( const char *_Nonnull filePath, BOOL copy)
Swift
func DDExtractFileNameWithoutExtension(_ filePath: UnsafePointer<Int8>, _ copy: Bool) -> String?
Parameters
filePath
input file path
copy
YES if we want the result to be copied
Return Value
the file name