Can we read or write a file from our local machine? If yes, how can we achieve it?

I have a csv file in my local, can I read it using File Reader / Directory Browser.

When I tried with the below settings in Directory Browser

I get this error

“error”:“Error browsing the directory contents.”

“stacktrace”:“java.nio.file.NoSuchFileException: /C:/Users/Dhivya Aroma/Documents/Mck Project Work Docs/Support Work\n\tat sun.nio.fs.UnixException.translateToIOException(\n\tat sun.nio.fs.UnixException.rethrowAsIOException(\n\tat sun.nio.fs.UnixException.rethrowAsIOException(\n\tat sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(\n\tat java.nio.file.Files.newDirectoryStream(\n\tat com.snaplogic.snaps.binary.DirectoryBrowser.getAttributes(\n\tat com.snaplogic.snaps.binary.DirectoryBrowser.lambda$displayAttributes$1(\n\tat net.jodah.failsafe.Functions$\n\tat\n\tat net.jodah.failsafe.SyncFailsafe.get(\n\tat com.snaplogic.snaps.binary.DirectoryBrowser.displayAttributes(\n\tat com.snaplogic.snaps.binary.DirectoryBrowser.process(\n\tat com.snaplogic.snap.api.ExecutionUtil.process(\n\tat com.snaplogic.snap.api.ExecutionUtil.execute(\n\tat com.snaplogic.snap.api.SimpleSnap.execute(\n\tat\n\tat\n\tat\n\tat$000(\n\tat$\n\tat$\n\tat Method)\n\tat\n\tat\n\tat\n\tat\n\tat\n\tat java.util.concurrent.Executors$\n\tat\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(\n\tat java.util.concurrent.ThreadPoolExecutor$\n\tat\n”

“reason”:"/C:/Users/Dhivya Aroma/Documents/Mck Project Work Docs/Support Work"

“resolution”:“Please try again.”


Do you have a Groundplex on that machine?

No, we dont have the Groundplex installed on the machine.

I don’t think File is supported within the Directory Browser Snap (I see it listed in the examples, but not in the supported protocols, so I’ve asked the Doc team to verify it), but it is supported in File Reader with the following restriction:

The file:/// protocol is supported only on Groundplex. In Cloudplex configurations, please use sldb or other file protocols. When using the file:/// protocol, the file access is conducted using the permissions of the user in whose name the Snaplex is running (by default Snapuser ). File system access is to be used with caution, and it is the customer’s own responsibility to ensure that file system is cleaned up after use.

1 Like

If there is no Groundplex on that machine, and the Groundplex machine (which is where the execution takes place) cannot reach the nominated file system, it will not be able to browse or read/write it.

1 Like

Ok. That was helpful.

Can you please help us by updating the snaplogic document also for reference.