Skip to content

[BUG] Max Pathlength exceeding files #16

Open
@Thesacraft

Description

@Thesacraft

When Library.refresh_dir is called and one file in the searched files exceeds the MAX_PATH length(256 chars) the programm throws a FileNotFoundError. You could circumvent this by checking the path length of every path or you catch the exception and discard the refresh. This all happens while you sort the files that are not in the library, in library.py in line 982-983. This is really an edge case but can happen when long File names and nested Folders are used. I don't know if you can repreduce this error because as far as i now you are asked by the python installer if you wan't to disable this limit(this is not selected by default I think). I ran into this issue while exploring what would happen if i selected my C: drive, maybe this helps to repruduce this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions