1 Reply Latest reply on Feb 20, 2013 2:13 PM by Freeky!

    Load content of folder located in /content/dam/

    Jakolcz

      Hi,

      I'm trying to load the entire content of folder "/content/dam/myFolder". Is it possible? I've tried this piece of Java code

      File folder = new File("/content/dam/myFolder/");
      File[] listOfFiles = folder.listFiles();
      if(listOfFiles == null){%>
           NULL<%
      }else{%>
          NOT NULL<%
      

      but I allways get the NULL message.

      Also if I try

       

      folder.exists();
      

       

      it returns false

       

      Thanks for any help.