Fileable is file utilities for Swift. It enables to mange files or directories efficiently and easily.
You can install this library via Cocoapods just putting text described below to
You can use this library with Carthage by simply putting this text to
| Function or Computed property | |
static var pwd: String | Get current directory path.|
static var home: String | Get home directory path.|
var ls: [String]? | Get contents of specific directory.|
var isFile: Bool | Check the file exists or not. |
var isDir: Bool | Check the directory exists or not.|
var ext: String | Get file extension.|
static func cd(path: String) throws| Change directory like a
static func mkdir(path: String) throws | Make directory. |
func rm(target: String) throws| Remove directory or file. |
func mv(to toPath: String) throws| Move file or directory.|
func touch(at: String) throws| Create empty file. |
Fileable is licensed under the
You can use this library free of charge. Please include copyright notie in your program.
See LICENSE for detail.
You may find interesting
Fix inaccessible method - 2019-01-16 01:38:31
Fix bugs - 2019-01-16 01:34:25
Fix internal inaccessible level
Make bundled file method nullable
Add enhancements - 2019-01-15 04:24:28
Implement get bundle file path method
Support both String and URL type as a path param
Separate platform specific method as a service
Support making multiple directory at once
Add path absolute or relative detector
Fix building scheme failure & deployment target issue - 2018-11-14 05:39:02
Fix building scheme failure & deployment target issue
Fix building scheme failure - 2018-11-14 05:18:34
Fix building scheme failure for Carthage build system.
Rename Fileable object to Path - 2018-11-13 17:37:12
Path.pwdis now support setter enabling move directory
Pathobject automatically set self path as home directory when path initializer is "~".
iOSDirios directory list
UnixFSunix-based OS FS tree list - Now under construction -
List Contents & issue fix - 2018-10-26 06:13:22
- Fileable("path/to/dir").ls has been implemented
You can get contents of specific directory as an array.
- Fix issue
Fileable("/path/to/dir").isFilereturns TRUE #1
In this issue,
isFile property does not return proper result.
Fileable("path/to/directory").isFile => False
Fileable("path/to/directory").isFile => True