-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels