Re: file_mkdir error [message #72480] |
Wed, 08 September 2010 02:18 |
sirvival
Messages: 18 Registered: August 2010
|
Junior Member |
|
|
On Sep 7, 5:34 pm, sirvival <fpfei...@hs.uni-hamburg.de> wrote:
> Hi,
> first I tried with the spawn command to create a directory but
> file_mkdir seems to be the easy way.
>
> But:
> when I use it inside a terminal it works fine.
> The folder gets created and I can cd, ' foldername' to it.
> When I use it inside my pro it seem to create the folder but I can not
> access it with cd,'foldername'.
> Neither with terminal (no such file ...).
> Ls shows the folder.
> I can access it with Dolphin.
>
> commands:
>
> e.g. terminal:
>
> file_mkdir,'test',/NOEXPAND_PATH
>
> works fine
>
> e.g. pro:
> file_mkdir,resultpath,/NOEXPAND_PATH
>
> only seems to work
>
> Is this a problem with resultpath?
> help,resultpath
> RESULTPATH STRING = ' 0.350'
>
> Thanks
Found the error. As you can see the String still has a space in front.
If I include it in the terminal or in idl I can access the directory.
|
|
|