Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when working on external drive #14

Open
sathishvj opened this issue Mar 2, 2020 · 6 comments
Open

Issue when working on external drive #14

sathishvj opened this issue Mar 2, 2020 · 6 comments

Comments

@sathishvj
Copy link

I have a USB SSD drive. I'm a folder in it similar to: /Volumes/SD-250G-SSD/MyProject/MyFolder/MySubFolder/AndSubSubFolder. brename commands don't work within it - it just doesn't match the patterns. If I copy the files, say, to /tmp and then run the same command, it works.

@shenwei356
Copy link
Owner

Interesting, I just tested and everything was fine (Linux desktop and USB HDD drive, path is /run/media/shenwei/Seagate Backup Plus Drive/tmp/) .

Can you please paste some file names and matching pattern?

@sathishvj
Copy link
Author

On the external ssd it doesn't work.

[vj:/Volumes/SD-500G-SSD/br-on-ssd] $ ls
abcd.efgh*

[vj:/Volumes/SD-500G-SSD/br-on-ssd] $ brename -d -p "abcd" -r "xyz"
[INFO] 0 path(s) to be renamed

$ cd -
/tmp/br-on-mac

On the mac ssd it works fine.

[vj:/tmp/br-on-mac] $ ls
abcd.efgh

[vj:/tmp/br-on-mac] $ brename -d -p "abcd" -r "xyz"
[INFO] checking: [ ok ] 'abcd.efgh' -> 'xyz.efgh'
[INFO] 1 path(s) to be renamed

@schroef
Copy link

schroef commented Mar 31, 2020

I seem to have same issue on OSX 10.14 I got a fat32 formated drive and I'm test a folder.
so i use command to go to the folder
cd /Volumes/_MINDFLOW/_MINDFLOW/CLIENTS/FACE\ EVENTS/04.\ DESIGN/CabanaFestival_Mar2015/

then i try a dry-run with this
brename -p '.' -r '$1 ' -d

i get this in return

[INFO]   ignore case: false
[INFO]   search pattern: .
[INFO]   include filters: .
[INFO]   search paths: ./
[INFO] 
[INFO] 0 path(s) to be renamed

@schroef
Copy link

schroef commented Mar 31, 2020

another example simply check for files with underscore

MBP-Schroef:CabanaFestival_Mar2015 Admin$ brename -p "_" -r "-" -d
[INFO] main options:
[INFO]   ignore case: false
[INFO]   search pattern: _
[INFO]   include filters: .
[INFO]   search paths: ./
[INFO] 
[INFO] 0 path(s) to be renamed
MBP-Schroef:CabanaFestival_Mar2015 Admin$ 

this is the tree

3D
│   ├── Finals
│   │   ├── CBFmar2015_15x15_Double_Topview_A5.png
│   │   ├── CBFmar2015_15x15_Double_Topview_A5_object_id.png
│   │   ├── CBFmar2015_A0\ Poster-Banner_Topview_A0.png
│   │   ├── CBFmar2015_A0\ Poster-Banner_Topview_A0_object_id.png
│   │   ├── CabanaFestival_Mar2015.img.thea
│   │   ├── CabanaFestival_Mar2015_No\ Disp.img.thea
│   │   └── CabanaFestival_Mar2015_No\ Disp.png
│   └── Textures
│       ├── 15x15_CabanaFestival_Mar2015.jpg
│       ├── 15x15_CabanaFestival_Mar20152.jpg
│       ├── 54x85_FreeTicket-CBF_Mar2015.psd
│       ├── A2_CabanaFestival_Feb2017_2k.png
│       ├── A3_CabanaFestival_Mar2015.jpg
│       ├── A3_CabanaFestival_Mar2015_low.jpg
│       ├── Back15x15_CabanaFestival_Feb2017_1.5k.png
│       ├── Front15x15_CabanaFestival_Feb2017_1.5k.png
│       ├── Front54x85_FreeTicket-CBF_Feb2017.png
│       ├── Ipad_Browser_Thearender.jpg
│       ├── Ipad_Browser_Thearender_2k.jpg
│       ├── back15x15_CabanaFestival_Mar2015_low.jpg
│       └── front15x15_CabanaFestival_Mar2015_low.jpg
├── BRON
│   ├── Presskit-Naffz\ 2013
│   │   ├── IMG_4114.jpg
│   │   ├── IMG_4128.jpg
│   │   ├── NAFFZ\ LOGO.eps
│   │   ├── Naffz\ Biografie.pdf
│   │   ├── Naffz\ Biography.pdf
│   │   └── Naffz\ vrijstaand\ 2013.psd
│   └── Stefan\ Vilijn\ Presskit\ 2013
│       ├── biography-stefan-vilijn.txt
│       ├── stefan\ vilijn\ foto\ 2\ vrijstaand.psd
│       ├── stefan\ vilijn\ foto\ 2.jpg
│       ├── stefanvilijnlogo.eps
│       ├── stefanvilijnlogo.jpg
│       └── stefanvilijnlogo.png
├── DESIGN
│   ├── 54x85_FreeTicket-CBF_Mar2015.psd
│   ├── A1_CabanaFestival_Mar2015.psd
│   ├── A2_CabanaFestival_Mar2015.psd
│   ├── FBEventBanner784x295_CabanFestial_Mar2015.psd
│   ├── FBposts_CabanFestival_Mar2015.psd
│   └── Flyer15x15_CabanaFestival_Mar2015.psd
├── EXPORT
│   ├── A2_CabanaFestival_Mar2015_concept.jpg
│   ├── FBEventBanner784x295_CabanFestial_Mar2015.png
│   ├── FBdjs-date_CabanFestival_Mar2015.png
│   ├── FBdjs-logos_CabanFestival_Mar2015.png
│   ├── FBvipcabana_CabanFestival_Mar2015.png
│   ├── FBvipface_CabanFestival_Mar2015.png
│   └── FacebookEvenPage_Dec2014.jpg
└── PRINT
    ├── 15x15_CabanaFestival_Mar2015.indd
    ├── 15x15_CabanaFestival_Mar2015.pdf
    ├── 54x85_FreeTicket-CBF_Mar2015.psd
    ├── 54x85_FreeTicket-CBF_Mar2015_flt.psd
    ├── 54x85_FreeTicket-CBF_mar2015.indd
    ├── 54x85_FreeTicket-CBF_mar2015.pdf
    ├── A1_CabanaFestival_Mar2015.indd
    ├── A1_CabanaFestival_Mar2015.pdf
    ├── A1_CabanaFestival_Mar2015.psd
    ├── A3_CabanaFestival_Mar2015.indd
    ├── A3_CabanaFestival_Mar2015.pdf
    ├── A3_CabanaFestival_Mar2015.psd
    ├── Back15x15_CabanaFestival_Mar2015.psd
    ├── Front15x15_CabanaFestival_Mar2015.psd
    └── flt.psd

@schroef
Copy link

schroef commented Mar 31, 2020

I also tried Recursive

MBP-Schroef:CabanaFestival_Mar2015 Admin$ brename -p "_" -r "-" -R -d
[INFO] main options:
[INFO]   ignore case: false
[INFO]   search pattern: _
[INFO]   include filters: .
[INFO]   search paths: ./
[INFO] 
[INFO] 0 path(s) to be renamed
MBP-Schroef:CabanaFestival_Mar2015 Admin$ 

Same result as above

@schroef
Copy link

schroef commented Mar 31, 2020

I think i can confirm it does run on either OSX fat32 or something else. I copied files from the TEXTURES folder to a local test folder and it runs just fine

MBP-Schroef:test Admin$ brename -p "_" -r "-" -R -d
[INFO] main options:
[INFO]   ignore case: false
[INFO]   search pattern: _
[INFO]   include filters: .
[INFO]   search paths: ./
[INFO] 
[INFO] checking: [ ok ] '15x15_CabanaFestival_Mar2015.jpg' -> '15x15-CabanaFestival-Mar2015.jpg'
[INFO] checking: [ ok ] '15x15_CabanaFestival_Mar20152.jpg' -> '15x15-CabanaFestival-Mar20152.jpg'
[INFO] checking: [ ok ] 'A2_CabanaFestival_Feb2017_2k.png' -> 'A2-CabanaFestival-Feb2017-2k.png'
[INFO] checking: [ ok ] 'A3_CabanaFestival_Mar2015.jpg' -> 'A3-CabanaFestival-Mar2015.jpg'
[INFO] checking: [ ok ] 'A3_CabanaFestival_Mar2015_low.jpg' -> 'A3-CabanaFestival-Mar2015-low.jpg'
[INFO] checking: [ ok ] 'Back15x15_CabanaFestival_Feb2017_1.5k.png' -> 'Back15x15-CabanaFestival-Feb2017-1.5k.png'
[INFO] checking: [ ok ] 'Front15x15_CabanaFestival_Feb2017_1.5k.png' -> 'Front15x15-CabanaFestival-Feb2017-1.5k.png'
[INFO] checking: [ ok ] 'Front54x85_FreeTicket-CBF_Feb2017.png' -> 'Front54x85-FreeTicket-CBF-Feb2017.png'
[INFO] checking: [ ok ] 'Ipad_Browser_Thearender.jpg' -> 'Ipad-Browser-Thearender.jpg'
[INFO] checking: [ ok ] 'Ipad_Browser_Thearender_2k.jpg' -> 'Ipad-Browser-Thearender-2k.jpg'
[INFO] checking: [ ok ] 'back15x15_CabanaFestival_Mar2015_low.jpg' -> 'back15x15-CabanaFestival-Mar2015-low.jpg'
[INFO] checking: [ ok ] 'front15x15_CabanaFestival_Mar2015_low.jpg' -> 'front15x15-CabanaFestival-Mar2015-low.jpg'
[INFO] 12 path(s) to be renamed
MBP-Schroef:test Admin$ 

I do notice, at the start if readme it says "." are ignored. So is that the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants