Hi all,
I need to return a list of a directory as my response to a request. I am using something like:
return Response.ok(myDir,"text/html").build();
where myDir is a variable to type FILE pointing to a directory. So far no luck.
I have also have tried:
return Response.ok(myDir,"inode/directory").build();
Is there a way of achieving this?
Thank you all in advance for your suggestions.
Log in to post a comment.
Hi all,
I need to return a list of a directory as my response to a request.
I am using something like:
return Response.ok(myDir,"text/html").build();
where myDir is a variable to type FILE pointing to a directory.
So far no luck.
I have also have tried:
return Response.ok(myDir,"inode/directory").build();
Is there a way of achieving this?
Thank you all in advance for your suggestions.