ILSFileManager will helps you create create file, create directory ,Delete Files,Move Files,Copy Files,Get the list of files in your directory from Apple File System(APFS). ILSFileManager is a interface that helps to store your large media files or any files and helps to return the file name and using that file name you can easily retrieve the file from the APFS. ILSFileManager also helps to get know of your device diskspac
- Creates Directory
- Create Files
- Copy Files
- Move Files
- List out files
- Delete Files
- Device Disk Utlities
-
iOS 9.0+
-
Xcode 9.0+, Swift 4+
- Download and drop the 'ILSFileManager.framework' into your Xcode project.
- Make Sure you add it by Embedded Binaries
- Please Set Enable Bitcode as NO during app submission
- Import ILSFileManager to your respective Classes
- Use the ILSFileManager.framework in the folder 'AppStore Submission Framework' when you are submitting your application to the appstore
- Create Directory or Create Folder which returns your directory name
ILSFileManager.createDirectory(directoryName: ‘FOLDER_NAME’)
- Create File or Create Data which returns the folder path in which it saved and can be used for future retrivel
ILSFileManager.createFile(fileName: 'FILE_NAME', folderName: 'FOLDER_NAME', data: 'DATA_TO_BE_SAVE.Extension(.jpg,.png,mov,.mp4,.pdf,etc..)')
- Get the list of path saved in a directory or sub directory both methods can be used if there is no folder then set it as nil return an array of string paths
ILSFileManager.getDirectorylistatPath(folderName: 'FOLDERNAME if any or nil')
ILSFileManager.getfileListatPath(folderName: 'FOLDERNAME')
- Move File to a new location path consist of three return types success : Bool error:NSError and message : String
LSFileManager.moveDatatonewLocation(existingpath: 'FOLDERNAME/FILENAME', folderName: 'DESTINATIONFOLDER')
- Copy File to another path consist of three return types success : Bool error:NSError and message : String
ILSFileManager.copyDatatonewLocation(existingpath: 'FOLDERNAME/FILENAME', folderName: 'DESTINATIONFOLDER')
- Helps to check whether a file exist at path or not returns a boolean value
ILSFileManager.fileExistorNot(filePath: 'FOLDERNAME/FILENAME')
- Helps to retrieve a file as data from the presaved path from create file
ILSFileManager.getDatafileatPath(filePath: 'FOLDERNAME/FILENAME')
- Removes Directory as well as file from the storage
ILSFileManager.removeDirectory(foldername: 'FOLDERNAME')
ILSFileManager.removeFile(filepath: 'FOLDERNAME/FILENAME')
- ILSFileManager helps to to get the free space,total disk space,total used disk space of your device
ILSFileManager.totalDiskSpaceInGB
ILSFileManager.totalDiskSpaceInMB
ILSFileManager.usedDiskSpaceInGB
ILSFileManager.usedDiskSpaceInMB
ILSFileManager.freeDiskSpaceInGB
ILSFileManager.freeDiskSpaceInMB
iLeaf Solutions http://www.ileafsolutions.com