Select to view content in your preferred language

Check if a folder exists in javascript

10350
2
Jump to solution
03-03-2017 12:06 PM
JoseSanchez
Frequent Contributor

Hello everyone

Is there a way to check if a folder exists in javascript? or in dojo?

Thanks

0 Kudos
1 Solution

Accepted Solutions
JoseSanchez
Frequent Contributor

Hi Robert,

I am going to use a web rest web service to check if the folder exists.

Thanks

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Jose,

  See this thread:

How to use JavaScript to determine whether a directory exists? - Stack Overflow 

It is really not a good idea to do this from JS though.

0 Kudos
JoseSanchez
Frequent Contributor

Hi Robert,

I am going to use a web rest web service to check if the folder exists.

Thanks

0 Kudos