Hi,
I am trying to save files using a relative file path. I want the files to be saved in a folder called Data. If this folder does not exist, then I want the procedure to create it. For some reason when I run these two lines of code,
String newCSVFolder = "::Data:"
NewPath/C/O saveFolder, location + newCSVFolder
an error message is generated. The message says "The operation could not be completed because Windows OS error - Access Denied. Do you want help?"
When I change the String newCSVFolder to the full path name, the procedure performs precisely as I want it to.
This makes me think that location is an empty string.
The path passed to NewPath must be a full path because Igor has no concept of a current directory.
Assuming that you know what your relative path is relative to, you should be able to convert your relative path to a full path.
If this does not solve the problem then create a demo function that illustrates the problem and specifies what you mean by "location" and what you want the path to be relative to.
August 7, 2014 at 12:11 pm - Permalink
August 7, 2014 at 03:01 pm - Permalink
Yes. Here is how you do it:
August 7, 2014 at 03:56 pm - Permalink
August 11, 2014 at 01:34 pm - Permalink