-
Notifications
You must be signed in to change notification settings - Fork 32
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
mega65_ftp issues with long filenames #164
Comments
Will just share some thoughts on how double-quotes within double-quotes, tends to be tricky (and probably isn't related to all the matters you mentioned, but maybe some). The way it can be handled can vary depending on whether you're trying to get it to work:
Getting double-quotes-within-double-quotes to work in the consoleLinux/Mac osxmethod 1: escaping internal double-quotesWith this technique, you could just escape the internal double-quotes with the backslash character.
method 2: avoidance: use single-quote and double-quoteAnother technique is to avoid the situation by using single-quotes externally, but double-quotes internally. E.g.:
(I added a space between the last double-quote and last single-quote just for clarity, the extra space isn't really needed) |
Thanks for the explanation! I'm aware of it and remembered the discussion about it we had in in the past. In between the mega65_ftp was enhanced, partly restructured/refactored so I gave it another try to support longer filenames with spaces and upper/lowercases. That all works fine on rename (well there is sometimes a weird behavior that I can't reproduce), delete and also copy. Concrete example of what I'm sending for a mount command: |
With the new version of M65Connect I want to support long filenames. I've experienced issues with some commands:
MOUNT a D81 image with a space in filename or bigger than 8 chars: Will be processed with no error message but image will not be mounted
Example: mega65_ftp.osx -l /dev/cu.usbserial-25163305977F1 -s 2000000 -c "mount "MY REAL ORDER.D81""
RENAME doesn't seem to consider case sensitivity:
mega65_ftp.osx" -l /dev/cu.usbserial-25163305977F1 -s 2000000 -c "rename "My File.D81" "My FILE.D81""
Output: ERROR: Cannot rename to "My FILE.D81", as this file already exists.
The text was updated successfully, but these errors were encountered: