Create folder bloc

21 views
Skip to first unread message

IcyLyd

unread,
Jan 8, 2015, 10:11:29 AM1/8/15
to icy-so...@googlegroups.com
Hi,
I would like to use the "create folder bloc" in protocole to create a folder where I could save all the files generated by my protocol.
I load the path of my folder loop in  the "Base folder entry" of the bloc, but icy returns me an error (see capture):
"The parent folder does not exist or is not a folder."
Is it normal, or should I proceed differently ?
Thanks a lot.
Lydia

Capture d’écran 2015-01-08 à 16.06.14.png

Stephane

unread,
Jan 8, 2015, 12:19:57 PM1/8/15
to icy-so...@googlegroups.com
Hi,

I think there is something wrong with the protocol but the one i gave you does not work ?
Also you can send me your protocol so i can examine where is the problem with the folder creation.

Best,

- Stephane

IcyLyd

unread,
Jan 9, 2015, 1:20:53 PM1/9/15
to icy-so...@googlegroups.com
Hi Stephane and Alex
here are the 2 protocols I tested. The one with the create folder bloc (SpotDetectorToRoiStat-FolderLoop-WithResultFolder.protocol)
and the one with the javascript bloc you (stephane) gave me (SpotDetectorToRoiStat-FolderLoop.protocol).
These 2 protocols do not create the specified folder.
The first one, indicate "The parent folder does not exist or is not a folder." as if the folder loop box was indicating a file path and not the "mother folder path" which can be seen in the snapshot of the protocole in the display box.
The second protocol is running (the javascript bloc get a green check) but the folder is not created
whereas the ROI statistics/workbook to file block is running well and produce my desired excel files.

I also tried the "create file " bloc and it returns the same error ("The parent folder does not exist or is not a folder").
Do we have another way or bloc to get the path of the parent folder ?
Thanks
Lydia.
SpotDetectorToRoiStat-FolderLoop-WithResultFolder.protocol
SpotDetectorToRoiStat-FolderLoop-WithResultFolder.protocol_screenshot.png
SpotDetectorToRoiStat-FolderLoop.protocol
SpotDetectorToRoiStat-FolderLoop.protocol_screenshot.png

Stephane

unread,
Jan 13, 2015, 4:03:03 AM1/13/15
to icy-so...@googlegroups.com
Hi Lydia,

At least for the SpotDetectorToRoiStat-FolderLoop.protocol you don't use the output File so folder won't be created until you effectively use the output File to save something. I modified the script in the protocol so it always create the output folder :)

Best,

- Stephane
SpotDetectorToRoiStat-FolderLoop_2.protocol

IcyLyd

unread,
Jan 13, 2015, 7:08:03 AM1/13/15
to icy-so...@googlegroups.com
Ah OK, great !
I will use the FileUtil.createDir more oftenly now ...
 many thanks 
:)
Reply all
Reply to author
Forward
0 new messages