Skip to content
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

FIXED: do not trim names that start with a space #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

FIXED: do not trim names that start with a space #15

wants to merge 1 commit into from

Conversation

warpdesign
Copy link

If filenames started with a space (which is a valid name in Unix), these spaces would be removed from the returned listing, returning.

For example:

--rw-r-----   1 userName alternc       460 Aug 22 03:45  test1
--rw-r-----   1 userName alternc       560 Aug 22 03:47   test2

Would return two wrong names: "test1" and "test2" instead of " test1" and " test2".

I added a new test for this particular case.

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.

None yet

1 participant