Login  Register

Re: Recursive processing of a directory not working correctly

Posted by Matthew Jacobs on May 23, 2014; 5:12pm
URL: http://imagej.273.s1.nabble.com/Recursive-processing-of-a-directory-not-working-correctly-tp5007797p5007881.html

Michael,

You are awesome! Thanks for the info! I assumed it was something like this, but I have not had the time to try anything in our biophotonics core yet.

You are the best! Thanks again,
Matt

On May 23, 2014 2:07 AM, "Michael Entrup [via ImageJ]" <ml-node+[hidden email]> wrote:
Hello Matthew,

in your macro 'path' is only the string that represents the file-names
and folder-names starting at the selected directory. You have to use
'inBase + path' to get the full path.

 > if (File.isDirectory(inBase + path))

will work. If you have a look at

 > run("Bio-Formats Windowless Importer", "open=["+inBase + path+"]
color_mode=Default view=Hyperstack stack_order=XYCZT");

there you use the same combination.

Best regards
Michael


Am 23.05.2014 01:12, schrieb Matthew Jacobs:

> Oops... just a heads up to anyone trying to use this code in the future. I
> tried applying the suggested:
>
> if (File.isDirectory(path))
>
> in place of the endswith / from my original code and it is not working. I
> clearly need to change that bit of code  somewhat to make it work.
>
> If you replace that single line with the original from my first post, things
> should work (even if it is not elegant in any way haha).
>
>
>
> -----
> Matthew Jacobs,
> Research Assistant
> Callaway Neuroscience Laboratory
> The Salk Institute for Biological Studies
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Recursive-processing-of-a-directory-not-working-correctly-tp5007797p5007867.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html



If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.x6.nabble.com/Recursive-processing-of-a-directory-not-working-correctly-tp5007797p5007868.html
To unsubscribe from Recursive processing of a directory not working correctly, click here.
NAML
Matthew Jacobs,
Research Assistant
Callaway Neuroscience Laboratory
The Salk Institute for Biological Studies