https://github.com/yonat/directoryuploader
Automatically upload all files saved in source directory, and then delete the uploaded files.
https://github.com/yonat/directoryuploader
Last synced: about 1 year ago
JSON representation
Automatically upload all files saved in source directory, and then delete the uploaded files.
- Host: GitHub
- URL: https://github.com/yonat/directoryuploader
- Owner: yonat
- License: mit
- Created: 2016-12-15T21:14:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-10T14:03:21.000Z (almost 7 years ago)
- Last Synced: 2025-02-15T17:36:46.460Z (over 1 year ago)
- Language: Swift
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# DirectoryUploader
Monitors a directory and automatically detects new files added to it. Uploads all files to a target URL, and cleans up afterwards.
[![Swift Version][swift-image]][swift-url]
[![Build Status][travis-image]][travis-url]
[![License][license-image]][license-url]
[](https://img.shields.io/cocoapods/v/DirectoryUploader.svg)
[](http://cocoapods.org/pods/DirectoryUploader)
[](http://makeapullrequest.com)
## Installation
### CocoaPods:
```ruby
pod 'DirectoryUploader'
```
### Manually:
Copy `Sources/*` to your Xcode project.
## Usage
```swift
let uploader = DirectoryUploader(sourceDirectory: docDir, targetURL: endpointURL)
// now save files to docDir, and they will be automatically uploaded to endpointURL.
```
## Meta
[@yonatsharon](https://twitter.com/yonatsharon)
[https://github.com/yonat/DirectoryUploader](https://github.com/yonat/DirectoryUploader)
[swift-image]:https://img.shields.io/badge/swift-5.0-orange.svg
[swift-url]: https://swift.org/
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE.txt
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[codebeat-image]: https://codebeat.co/badges/c19b47ea-2f9d-45df-8458-b2d952fe9dad
[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-awesomeios-com