I have been going through stackoverflow topics to find anything useful and there is really nothing. What i would need is (probably) some module, which you can call like this:
someModule('/start/path/', 'list', function(err, list) { // list contains properly structured object of all subdirectories and files }); also this
someModule('/start/path/', 'remove', function(err, doneFlag) { // doneFlag contains something like true so i can run callback }); I need above functionalities to create mini web-build ftp/code editor for my students.
It is important that listing includes correct structure of NOT only files but also subdirectories they are in. It doesnt really have to be that easy like in my desirable example, most important is that functionality is there. Thank you for all recomendations.