Skip to content

path.extname('.a.a')!='' #27292

@anliting

Description

@anliting

According to the documentation for path.extname(path):

If there is no . in the last portion of the path, or if the first character of the basename of path (see path.basename()) is ., then an empty string is returned.

path.basename('.a.a')[0]=='.' and path.extname('.a.a')!='' should not happen at the same time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.pathIssues and PRs related to the path subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions