Releases: amosavian/FileProvider
Replaced absoluteURL with relative url (resolved #27)
This is mainly a bug fix release:
- Renamed
DropboxFileProvider.copyItem(path:toRemoteURL:)
toDropboxFileProvider.copyItem(remoteURL:toPath:)
due to logic - improving performance.
Added CloudFileProvider, NSFileCoordinator used in Local provider
Now you can use CloudFileProvider
to easily access iCloud container registered with your app. It will create Documents folder in the container automatically.
- It's important not to call its initializer in main thread according to Apple Documentation.
Other changes:
- Added isCoordinating property to
LocalFileProvider
: which makes all functions to useNSFileCoordinator
when reading and writing. It's necessary to set true for shared container and iCloud files. - Added `LocalFileProvider.init(sharedContainerId:, directory:) to acces application shared container easily.
- bug fix: Range header for remote provider is one-byte extended.
Added iCloud Drive provider: CloudFileProvider
Now you can use CloudFileProvider
to easily access iCloud container registered with your app. It will create Documents
folder in the container automatically. It's important not to call its initializer in main thread according to Apple Documentation.
Also:
- Refactored initializers
- Replaced
NSSearchPathForDirectoriesInDomains
withFileManager.urls(for:In:)
Fixed crashing bug
0.10.1 Fixed crashing bug
Added OneDrive support
- removed unnecessary MediaPlayer.framework dependency due to macOS
- fixed multiple Dropbox provider bugs
Added Thumbnail and Meta-information generator to Local and Dropbox
Use ExtendedFileProvider.propertiesOfFile()
method to fetch file metadata information for images(Dimensions, Exposure, ISO, Date taken, Location, etc.), videos(Duration and Dimensions), music(Duration, Title, Artist, etc.) and pdf(Title, Creation/Modification Date, etc.) files. Also use ExtendedFileProvider.thumbnailOfFile()
to generate thumbnail preview of images.
For more information, please read Readme.md
- Please note it won't cache generated information. if you don't do it yourself, it may hit you app's performance.
Adding FileObjectSorting, file size bug fix
- Added
FileObjectSorting
to sort array of Fileobjects in a more standard way - bugfix: Dropbox/Webdav file size was -1 regardless of real size
Overwrite argument added
- Added: Overwrite argument to copy. move and writeContents functions
- Added: File-based uploading to Dropbox
- Bugfix: Dropbox time for non-UTC timezones
- Bugfix: optimized compile time/memory by explicit type annotating
- Deprecation:
FileObject.fileType
, use.type
instead
Bugfix
Dropbox new methods and FileObject encapsulation
- Added
temporaryLink(to:)
method for Dropbox providerget_temporary_link
API - Added
copyItem(path, toRemoteURL:)
method for Dropbox providersave_url
API - Fixed initialization of
FIleObject
classes and accesses, now in par withURLResourceValues