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

[BUG] - list parser: SyntaxError on name that starts with 2 numbers #69

Closed
clonejo opened this issue Jan 8, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@clonejo
Copy link
Contributor

clonejo commented Jan 8, 2024

Description

A file called 01 1234 foo.mp3 breaks the file listing parser.

Reducing the file name to one number makes the example below work.

Steps to reproduce

let file: File = dbg!(File::from_str(
    "-r--r--r--    1 23        23         1234567 Jan 1  2000 01 1234 foo.mp3",
))
.ok()
.unwrap();
assert_eq!(file.name, "01 1234 foo.mp3");

File::from_str() returns SyntaxError.

Environment

  • OS: Arch
  • Architecture x86_64
  • Rust version rustc 1.76.0-beta.1 (0e09125c6 2023-12-21)
  • library version: v5.3.0 a0537a2
  • Protocol used: FTP
  • Remote server version and name: vsftpd
@clonejo clonejo added the bug Something isn't working label Jan 8, 2024
@veeso
Copy link
Owner

veeso commented Jan 28, 2024

78aee86

@veeso veeso closed this as completed Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants