BitcasaFileLister icon indicating copy to clipboard operation
BitcasaFileLister copied to clipboard

Folder/filename changes

Open ekoekoazarak opened this issue 12 years ago • 7 comments

Now I see files with non alphabet characters in file/path are converted. It gave me 2 problems.

  1. Sometimes path became too long so makedir failed
  2. Converted form is not predictable, thus it's hard to guess original form. Most problematic cases : Chinese, Japanese, Korean.

ekoekoazarak avatar Nov 02 '14 13:11 ekoekoazarak

Have you tried any previous versions? Did those have issues with those languages as well?

reallistic avatar Nov 02 '14 18:11 reallistic

Any updates on this?

reallistic avatar Nov 03 '14 15:11 reallistic

Those problems were 1 : Windows max path length problem.. (260 characters) 2 : unidecode changes all non asii in the given string to asii.. it's the feature not a bug. but it bugs me. :$

ekoekoazarak avatar Nov 04 '14 06:11 ekoekoazarak

Any suggestions for the second one? In addition to using unidecode I am actually also removing characters that windows doesn't allow. I tried another library but it didn't work very well.

reallistic avatar Nov 04 '14 06:11 reallistic

Encoding in python2 is too complicated, but there's no python3 sdk. :no_entry_sign:

ekoekoazarak avatar Nov 04 '14 07:11 ekoekoazarak

On windows, just using nm.decode('utf-8') creates all files and directories successfully, when I deleted all warnings & exits on errs. Need to use encode('utf-8') to use api though.

ekoekoazarak avatar Nov 04 '14 14:11 ekoekoazarak

Sooooo, I just realized the reason I was using unidecode is pretty much unnecessary now. I will remove the dependency.

reallistic avatar Nov 04 '14 15:11 reallistic