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

File::Listing, sub "parse_dir": Fails if file/directory name starts with space-char [rt.cpan.org #47997] #6

Open
plicease opened this issue Sep 29, 2020 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@plicease
Copy link
Member

https://rt.cpan.org/Ticket/Display.html?id=47997

Library:  File::Listing
Sub:  parse_dir

The sub "parse_dir" doesn't parse names of files/directories correctly 
if they start with one or more space-chars. Using spaces at position 0 
is again some genius idea of a generic computer user, but it's still a 
bug in the parsing routine. :)
Cause the occurrence of this situation is rare I think, this bug isn't 
that important.


Original post of bug in perl-application "FTPSync":
https://sourceforge.net/tracker/?
func=detail&aid=797178&group_id=38241&atid=421898
@plicease plicease added the bug Something isn't working label Sep 30, 2020
@plicease
Copy link
Member Author

plicease commented Sep 30, 2020

I think this could be a tricky thing to fix, as there isn't an easy way to differentiate between output padding and a filename with leading space. I think trailing space could be a problem as well. I am happy to review PRs to try to address this though.

@plicease plicease added the help wanted Extra attention is needed label Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Development

No branches or pull requests

1 participant