FileRenamer Tutorial - PHP File Renamer package blog

Recommend this page to a friend!
  All package blogs All package blogs   PHP File Renamer PHP File Renamer   Blog PHP File Renamer package blog   RSS 1.0 feed RSS 2.0 feed   Blog FileRenamer Tutorial  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Viewers: 4

Last month viewers: 1

Package: PHP File Renamer

Instalation, adding new strategies description, and Frequency Asked Questions.




Objective

FileRenamer  solves problem of renaming files according strategy with saving folders structure.
Four goals were achieved:
  • Original source files are not changed
  • Folder structure is saved
  • Simply to add new rename strategy
  • Report of renamed process in .csv format is created

Installations

There are two thing for care about:
  • Add write permission to the FileRenamer folder. Or create folder /data/report in the FileRenamer root directory and set write permission to it.
  • Check if destination folder has write permission

Add new Strategies

  • The first, new strategy should extends "FileRenamer\Strategy\AbstractStrategy" class or implements "FileRenamer\Strategy\StrategyInterface"
  • The second, registry new strategy to the /configs/strategies.ini:
    [shortcut]
    class = Strategy class
    desc  = Strategy description
  • Finally check result using console command:
    php frcon.php -l

Frequency Asked Questions

  1. What is default destination path of renamed files?
    Default destination path is a parent folder of source folder.
    E.g. source path /var/www/test default destination path would be /var/www/test_renamed_YYYY_mm_dd_HH_ii_ss



You need to be a registered user or login to post a comment

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.



  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   PHP File Renamer PHP File Renamer   Blog PHP File Renamer package blog   RSS 1.0 feed RSS 2.0 feed   Blog FileRenamer Tutorial  

For more information send a message to info at phpclasses dot org.