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

Linux (possibly others) ampersand in filename #67

Open
chriscamacho opened this issue Dec 30, 2015 · 5 comments
Open

Linux (possibly others) ampersand in filename #67

chriscamacho opened this issue Dec 30, 2015 · 5 comments

Comments

@chriscamacho
Copy link

NB gui just shows none moving progress bar (but still responsive to closing window) no error message on gui

console output as follows:

EXECUTE ('adb', '-s', '0929e3ef', 'shell', 'mkdir', '/mnt/sdcard/Music/Bob Marley & The Wailers')
EXECUTE ('adb', '-s', '0929e3ef', 'shell', 'ls', '-l', '-a', '/mnt/sdcard/Music/Bob Marley & The Wailers/')
/system/bin/sh:  The Wailers/: not found wasn't matched, please report to the developer!
/mnt/sdcard/Music/Bob Marley : No such file or directory wasn't matched, please report to the developer!
EXECUTE ('adb', '-s', '0929e3ef', 'shell', 'mkdir', "/mnt/sdcard/Music/Bob Marley & The Wailers/Talkin' Blues")
EXECUTE ('adb', '-s', '0929e3ef', 'shell', 'ls', '-l', '-a', '/mnt/sdcard/Music/Bob Marley & The Wailers/')
/system/bin/sh:  The Wailers/: not found wasn't matched, please report to the developer!
/mnt/sdcard/Music/Bob Marley : No such file or directory wasn't matched, please report to the developer!
EXECUTE ('adb', '-s', '0929e3ef', 'shell', 'mkdir', '/mnt/sdcard/Music/Bob Marley & The Wailers/Legend')
EXECUTE ('adb', '-s', '0929e3ef', 'shell', 'ls', '-l', '-a', '/mnt/sdcard/Music/Bob Marley & The Wailers/')
/system/bin/sh:  The Wailers/: not found wasn't matched, please report to the developer!
Traceback (most recent call last):
  File "./aafm-gui.py", line 850, in process_queue_task
    src(*dst)
  File "/home/chris/development/aafm/src/Aafm.py", line 265, in copy_file_to_device
    assert self.is_device_file_a_directory(os.path.dirname(device_file))
AssertionError
@chriscamacho
Copy link
Author

find . -depth -name '&' -execdir bash -c 'mv "$1" "${1//&/and}"' _ {} ;

rename recusivly all files in current working path, replacing & with and

(work-a-round)

@sole
Copy link
Owner

sole commented Jan 5, 2016

Thanks for filing the issue! It does look like we should escape things better, not force people to rename their files! :-)

@chriscamacho
Copy link
Author

lol - for sure (was just temp thing in case ppl needed something to work NOW!) ;)
btw don't feel too bad it transferred around 4GB with this being the only issue, and it compiles nice and easy too...

@zymos
Copy link

zymos commented Feb 16, 2016

Ive also found that a semicolon(;) also causes this problem

@xeruf
Copy link

xeruf commented Jun 19, 2018

I have added escaping in my fork

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

4 participants