KnpLabs / KnpGaufretteBundle

Easily use Gaufrette in your Symfony projects.
http://knplabs.com
MIT License
717 stars 158 forks source link

Create proper filesystem management commands #63

Open lmammino opened 11 years ago

lmammino commented 11 years ago

I would (really) love to have some management commands to read, write, list (etc) keys stored on a filesystem.

I propose the following commands:

Name Arguments Description
gaufrette:read filesystem key shows the content of key on filesystem
gaufrette:write filesystem key content writes content on filesystem usign the name key
gaufrette:exists filesystem key checks if key exists on filesystem
gaufrette:keys filesystem [blob] lists all keys in filesystem (optionally filtered by blob)
gaufrette:delete filesystem key deletes key in filesystem
gaufrette:rename filesystem key1 key1 renames key1 to key2 in filesystem

What do you think about it? It should be quite easy to implement them as separate symfony commands and using the filesystem mapper service as way to retrieve configured filesystems.

lmammino commented 11 years ago

No opinions here? :bowtie: