[Insight-developers] kwsys::SystemTools::FileIsDirectory()
Miller, James V (Research)
millerjv at crd . ge . com
Mon, 7 Jul 2003 09:49:11 -0400
The current working directory could very well be
the cause of the problem. Suprisingly, things seemed
to work everywhere else but on Linux.
I put in a fix and we'll see if the continuous test
works.
Thanks Brad.
Jim
> -----Original Message-----
> From: Brad King [mailto:brad . king at kitware . com]
> Sent: Thursday, July 03, 2003 7:53 AM
> To: Miller, James V (Research)
> Cc: Insight-developers (E-mail)
> Subject: Re: [Insight-developers]
> kwsys::SystemTools::FileIsDirectory()
>
>
> > Does the FileIsDirectory() call in kwsys::SystemTools work
> properly on
> > linux?
> >
> > itkDICOMImageSeriesTest is failing on all the linux systems
> and the Mac.
> > The failures on linux are all the same. The ImageIOFactory
> cannot locate a
> > factory for the "CVS" directory in the data directory.
> There is a check in
> > the DICOMImageSeriesFilenames code to skip subdirectories,
> so the "CVS"
> > directory should have been excluded automatically.
>
> What is the current working directory when the test is
> running? I refer
> to this logic in itkDICOMSeriesFileNames.cxx:
>
> // Only read files
> if (itksys::SystemTools::FileIsDirectory(dicomDir.GetFile(i)))
> {
> continue;
> }
>
> // store the full filename
> m_FileNames.push_back(m_Directory + "/" + dicomDir.GetFile(i));
>
> The "IsDirectory" test is done on the file without a full path.
>
> -Brad
>