Skip to content

Conversation

@portey
Copy link

@portey portey commented Jul 24, 2015

No description provided.

@touki653
Copy link
Owner

Thanks! But can you port it in WindowsFilesystemFactory too?

@patecki
Copy link

patecki commented Jun 4, 2016

@touki653 will you merge it?

@f4z4on
Copy link

f4z4on commented Jan 4, 2017

@touki653 I just wanted to reimplement the solution to WindowsFilesystemFactory because one project we inherited is using @portey’s fork and we would love to eliminate as much dev- versions as possible from our composer.json.

However, it is not trivial. IMHO the best thing would be rather big refactoring or, even better, use modern FTP extensions and MLSD command. The issue is text alignment in columns on Windows. The 3rd column holds the <DIR> thing and file size for regular files. The <DIR> indicator is aligned to the left and the file size to the right. All raw list lines are needed to properly detect where 4th column holding filename starts. In addition, it seems that for all-directory listings, Windows adds additional padding to the column making it even less deterministic and harder to detect. Moreover, there are differences from the dir command on my Windows machines to what WindowsFilesystemFactory expects and I don’t have IIS set up so I can’t test how FTP server actually behaves. Not to mention these nuances can depend on Windows/IIS version and/or some setting (e.g., locale).

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.

4 participants