75lb / renamer

Rename files in bulk.
MIT License
526 stars 30 forks source link

Error with files starting with "." (dot) #61

Open 333van opened 2 years ago

333van commented 2 years ago

Version: probably the latest as I have ran npm i -g renamer Platform: Windows 10 Steps to reproduce:

mkdir temp; cd temp
touch .foo.bar
renamer -f "." ./* -d
# ERROR: These paths or patterns do not exist: ./*
renamer -f "/^\./" ./* -d
# ERROR: These paths or patterns do not exist: ./*
mv .foo.bar foo.bar
renamer -f "."  ./* -d
# No Error

PS: Thank you for making this awesome app!

333van commented 2 years ago

I guess it's because these files are treated as "hidden" files and they are omitted by renamer. /ayoisaiah/f2, another similar project, gives users the option to rename hidden files. Hope renamer can have this feature also.