Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glynnbird/foldinizer
Organise files into year/month folder structure
https://github.com/glynnbird/foldinizer
Last synced: 5 days ago
JSON representation
Organise files into year/month folder structure
- Host: GitHub
- URL: https://github.com/glynnbird/foldinizer
- Owner: glynnbird
- Created: 2012-04-13T14:03:08.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-13T14:56:08.000Z (over 12 years ago)
- Last Synced: 2024-10-12T22:13:07.124Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 85.9 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Foldinizer
```
______ __ ___ _
/ ____/____ / /____/ (_)____ (_)____ ___ _____
/ /_ / __ \/ // __ / // __ \/ //_ / / _ \/ ___/
/ __/ / /_/ / // /_/ / // / / / / / /_/ __/ /
/_/ \____/_/ \__,_/_//_/ /_/_/ /___/\___/_/```
## What does it do
If you have directory containing a bunch of files that you would like organised into year/month folders, then Foldinizer is for you.
e.g. I've got loads of photos (from iPhoto) in random folders which I'd like to organise into 2012/08 folders automatically.
## How do I run it?
You need a machine with PHP on, like a Mac.
* Copy folidinizer.php to your machine
* Ensure it is executable e.g. chmod 755 foldinizer.php
* Run it## What parameters does it need
1) Source directory - the path containing the directories to be recursed through
2) Destination directory - the path the files will be copied to
3) Test mode (optional) - by passing a third parameter, the script will do the scanning but will copy no filese.g.
```
./foldinizer.php ~/Pictures ~/mynewfolder
./foldinizer.php ~/Pictures ~/mynewfolder 1
```
## What if I want to move files instead of copy them?
You can edit the code and exchange the "copy" function for the "rename" function.