acutesoftware / AIKIF

Artificial Intelligence Knowledge Information Framework
GNU General Public License v3.0
54 stars 13 forks source link

file_tools has issue with UTF8 filenames #46

Open acutesoftware opened 7 years ago

acutesoftware commented 7 years ago

Also - check that folder names are copied properly and not missing first 2 characters of root folder name

acutesoftware commented 7 years ago

ERROR copying file ERROR copying file ERROR copying file

` def copy_file(src, dest): try:

        shutil.copy2(src , dest)

    except Exception as ex:

         print('ERROR copying file')

`

acutesoftware commented 7 years ago

Issue is on line 75 - if user passes paths with trailing os.sep it works, otherwise it loses 2 chars from subfolders

dest_folder = os.path.join(dest, p[len(base_path_ignore):])