An open API service indexing awesome lists of open source software.

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

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'
```