Skip to content

Error [FileNotFoundError] when you try to get size of a symlink #20

@Emilio-Bruno

Description

@Emilio-Bruno

Before this line of code:
total_size += os.path.getsize(fp)
you should add the following check:
if not os.path.islink(fp):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions