Skip to content

Cannot Create Library on network path #29

Closed
@Loran425

Description

@Loran425

https://github.com/CyanVoxel/TagStudio/blob/45e765862d7ec2bf2928134a91f0251a4d0b2068/tagstudio/src/core/library.py#L534-L543

Strips leading // from server shares e.g. //<server>/<share> gets normalized to \\\\<server>\\<share> but then gets caught by the above line stripping the leading \\ which in turn causes
https://github.com/CyanVoxel/TagStudio/blob/45e765862d7ec2bf2928134a91f0251a4d0b2068/tagstudio/src/core/library.py#L560-L571
to fail as the address is no longer accurate

swapping from strip to rstrip only removes trailing \\
path = os.path.normpath(path).strip('\\') becomes
path = os.path.normpath(path).rstrip('\\')
Which works for network shares.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions