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

Folder emulation #2

Open
holgerlembke opened this issue Feb 9, 2016 · 4 comments
Open

Folder emulation #2

holgerlembke opened this issue Feb 9, 2016 · 4 comments

Comments

@holgerlembke
Copy link

Hi David,

I just stumbled upon this nice ftp server, works great out of the box.

Is any work done on emulating folders?

@nailbuster
Copy link
Owner

good to hear its working....

nope, no emulating folders yet....if/when the spiffs supports directories 'fully', then it's something to look at....

@pgScorpio
Copy link

Would it be that hard to simulate folders from the filenames ??

Since the filenames contain slashes you know which part of the filename is a path and which part is the filename....

Now, , if you have "folders", because the filenames contain slaches you can't up- or download them via ftp.

@holgerlembke
Copy link
Author

It could be done but it is a lot of detail work. Let me pick three:

  • for "create folder" you have somehow manage empty folders. Could be a dummy file ".". Easy.
  • for all folder related functions (remove, rename, make) you always have to iterate over all (flat) files to collect/check/work your folder tree.
  • mixing folder walk (find first/next) and delete/insert files and folders the same time (like creating or deleting files in a find-first-next-loop over a folder) must somehow be a defined and be consistent.

Does not sound terrible difficult. But as said before, it is a job for the file system, not the ftp server.

@pgScorpio
Copy link

I agree it should be done on the filesystem !
I really don't understand why they (still) did not implement it......

If I can find the time ill look into it myself..

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

3 participants