Skip navigation
Shiva.Kosaraju
Currently Being Moderated

How to check a folder is accessible

Mar 10, 2012 8:09 AM

Hi Team,

I am looking for an activity which can help me in checking if a file present in a folder on a remote machine is accessible.

 

Also kindly suggest me the input pattern for the file path when using the activity. My shared location is \\wb\mis\pcs\shared\eForms\test.txt

 

 

Thanks in Advance

 
Replies
  • Currently Being Moderated
    Mar 12, 2012 2:37 AM   in reply to Shiva.Kosaraju

    There is no such Off the Shelf activity available for this requirement.

     

    You can use ExecuteScript activity to do this.

     

    java.io.File.canRead() method will return TRUE if the file can be read. FALSE otherwise.

     

    Within execute script, you need to escape all backslashes as shown below

     

    \\\\wb\\mis\\pcs\\shared\\eForms\\test.txt

     

    Within File Utilities activities, you can directly use the path without escaping the slashes.

     

    Nith

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points