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

FTP file names or folders with leading spaces cannot be processed correctly. #52

Open
Dandelion246 opened this issue Dec 13, 2024 · 0 comments

Comments

@Dandelion246
Copy link

file: dartFTP>lib>src>ftp_entry.dart

static final RegExp regexpLIST = RegExp(
r"^([-ld])" // Directory flag [1]
r"([-rwxs]{9})\s+" // Permissions [2]
r"(\d+)\s+" // Number of items [3]
r"(\w+)\s+" // File owner [4]
r"(\w+)\s+" // File group [5]
r"(\d+)\s+" // File size in bytes [6]
r"(\w{3}\s+\d{1,2}\s+(?:\d{1,2}:\d{1,2}|\d{4}))\s" // Date [7] Remove unnecessary "+" to avoid mistakenly swallowing spaces in file names.
r"(.+)$" // File/dir name [8]
);

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

No branches or pull requests

1 participant