https://github.com/dynamic/silverstripe-file-migration-task
A Build Task allowing for file migration from a local directory (recursively) to the SilverStripe Asset system
https://github.com/dynamic/silverstripe-file-migration-task
Last synced: 6 months ago
JSON representation
A Build Task allowing for file migration from a local directory (recursively) to the SilverStripe Asset system
- Host: GitHub
- URL: https://github.com/dynamic/silverstripe-file-migration-task
- Owner: dynamic
- License: bsd-3-clause
- Created: 2018-05-16T20:17:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-03T15:09:19.000Z (over 5 years ago)
- Last Synced: 2023-07-28T08:32:07.182Z (almost 2 years ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 3
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SilverStripe File Migration Task
### Summary
This Build Task allows for traversing a directory recursively and migrate those files into the SilverStripe filesystem. The task checks against the allowed extensions on [`File`](https://github.com/silverstripe/silverstripe-assets/blob/1/src/File.php#L165-L185).## Requirements
* SilverStripe Assets ^1.0
## Installation
`composer require dynamic/silverstripe-file-migration-task`
## Usage
### Configuration
```yaml
Dynamic\FileMigration\Tasks\FileMigrationTask:
# Path to directory with files (required)
existing_file_system_path: '/path/to/your/files'
# Base folder to create in Assets (optional)
base_upload_folder: '/uploads'
```