Skip to content

DaVikingCode/AssetsOperations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

When we receive graphics assets, we are looking for an easy way to rename files. Using utilities like pngquant we may want to delete some versions generated. This scripts provides an easy way to:

  • rename assets, first parameter is the string to match, second one is the replacing (it may be empty).
  • delete assets, every assets matching the first string parameter will be deleted.

Be careful with those operations, the deleting one doesn't move your assets to the thrash, it removes them totally from your computer. You should create a bacukup of your files each time before running those scripts.

Copy & paste your files inside the scripts directory. Then run the CLI, examples:

  • cd in the script directory then php renamer.php -img _image
  • cd in the script directory then php eraser.php _image

About

Rename and delete files depending name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages