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

json structure for directory with in directies,files #36

Closed
vikaskuppili1 opened this issue Jul 4, 2015 · 8 comments
Closed

json structure for directory with in directies,files #36

vikaskuppili1 opened this issue Jul 4, 2015 · 8 comments

Comments

@vikaskuppili1
Copy link

hi joni ,can u please provide json structure for the representing directories with directories and files , the nested structer . in your documentation u haven't demonstrated that .

@joni2back
Copy link
Owner

Hi @vikaskuppili1 the app does not work with nested directories .. Each request must return the list of files and dirs of the current directory... (Take into account if the nested structure is much deep, the request-response sime could be very long).

So, the API doc for listing is the following https://github.com/joni2back/angular-filemanager/blob/master/API.md#listing

Regards

@vikaskuppili1
Copy link
Author

hm okay but where as the example is showing directories with in directories how is that happens

@vikaskuppili1
Copy link
Author

the tree structure directories containing files

@vikaskuppili1
Copy link
Author

angular-filemanager

in that it is showing wp-admin ,.... in blog na

@vikaskuppili1
Copy link
Author

ok got it every request must be list of directories and files of the current directory

okay then in what way i have to send the json such that it should be sub directory of some other director where should we have to indicate that in json

@joni2back
Copy link
Owner

No one, the tree navigator have a smart piece of code to make that..
https://github.com/joni2back/angular-filemanager/blob/master/assets/js/filenavigator.js#L47
To inspect with developer console, just run
angular.element(document.getElementsByTagName('div')[0]).scope().fileNavigator.history

@vikaskuppili1
Copy link
Author

how it is deciding one folder is subfolder of the other , in order to do that in what way we have pass the json input stating that this is subfolder of that (x) .can be plz given given example json send request example

@vikaskuppili1
Copy link
Author

okay got the solution we have to read the path from the post json data and send the required directories and file of that current directory accordingly

Thanks

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

2 participants