Posted by
Michael Doube-2 on
Jan 20, 2006; 4:04pm
URL: http://imagej.273.s1.nabble.com/difference-in-dir-list-WinXP-and-Linux-tp3703981p3703984.html
Linux and Windoze handle filelists differently - Linux is case
sensitive, listing capitals (uppercase) first. Also, I've noticed WinXP
gets clever with numerical filenames, and guesses the correct (implied)
order when you do file1.img, file2.img ... file34.img instead of
file01.img, file02.img, ... file34.img - whereas Linux will get the
numbers out of order, but listed more .... precisely. Linux may also
give other characters (like spaces) a different precedence than WinXP,
giving the OS-es different list orders.
Hope this helps
Mike
Gabriel Landini wrote:
>Not sure if this will help, but it is not a good idea to use directories with
>spaces. Use "_" instead.
>
>Cheers,
>
>G.
>
>On Friday 20 January 2006 15:25, Tycho Scholtens wrote:
>
>
>>I'm using a macro that analyzes images from 4 directories.
>>It is important that the same file (when sorted by filename) is loaded from
>>all 4 directories.
>>When I run the macro pasted below in WinXP it gives the correct listing.
>>However, when I run it in Linux (RH 9.2) it gives a different order of the
>>files.
>>Is this a common problem and related to it, how can I sort an array of
>>strings in ImageJ (a simple sort() doesn't seem to work).
>>
>>Macro:
>>
>>
--
Michael Doube BPhil BVSc MRCVS
MPhil / PhD Student
Dental Institute
Barts and The London School of Medicine and Dentistry
Queen Mary, University of London
New Rd
London E1 1BB
United Kingdom
Phone +44 (0)20 7377 7000 ext 2681