Skip to content

fio: clarify fio.basename() with slash at end #3013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

Totktonada
Copy link
Member

Fixes #2124

@github-actions github-actions bot temporarily deployed to branch-gh-2124-fio-basename-trailing-slash July 8, 2022 22:18 Inactive
@Totktonada
Copy link
Member Author

(I'm not sure that the wording is nice, but it is my best tonight. I would like to have this caution in the documentation and open for proposals.)

@Totktonada
Copy link
Member Author

@@ -197,6 +197,10 @@ Below is a list of all ``fio`` functions and members.
Given a full path name, remove all but the final part (the file name).
Also remove the suffix, if it is passed.

Note that the basename of a path with the trailing slash is the empty
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Note that the basename of a path with the trailing slash is the empty
Note that the basename of a path with a trailing slash is an empty

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I should also replace

Example with the trailing slash:

with

Example with a trailing slash:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@Totktonada Totktonada force-pushed the Totktonada/gh-2124-fio-basename-trailing-slash branch from d9133c7 to 01493f5 Compare July 9, 2022 11:25
@github-actions github-actions bot temporarily deployed to branch-gh-2124-fio-basename-trailing-slash July 9, 2022 11:27 Inactive
@patiencedaur patiencedaur merged commit c85c94e into latest Aug 15, 2022
@patiencedaur patiencedaur deleted the Totktonada/gh-2124-fio-basename-trailing-slash branch August 15, 2022 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2pt] fio.basename behavior doesn't conform to POSIX
2 participants