Skip to content

path empty #3420

Closed
Closed
@jesse99

Description

@jesse99

In porting my code over to the new Path struct(s) there are a number of places where I wanted to see if a path was set. For now I am using str::is_not_empty(some_path.to_str() which I am not crazy about because it's going to allocate a string and, more importantly, because I'm not sure that ~"" will be round trippable for all file systems.

Note that boost file system has an empty method for just this purpose.

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