X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdFilesFromDirectory.cxx;h=e444b9ba1a84291479c94335389004a9c255b16d;hb=d71e30c7ee2a27d090576edbc5bb51e4de96fe92;hp=6e097ee1aa0a97815a22c0d0d6bbd6cbcc6c473e;hpb=b86f1fefc9fb173793a1b6d91cceefc28f048faf;p=bbtk.git diff --git a/packages/std/src/bbstdFilesFromDirectory.cxx b/packages/std/src/bbstdFilesFromDirectory.cxx index 6e097ee..e444b9b 100644 --- a/packages/std/src/bbstdFilesFromDirectory.cxx +++ b/packages/std/src/bbstdFilesFromDirectory.cxx @@ -52,7 +52,7 @@ void FilesFromDirectory::Process() DirName = bbGetInputIn(); bool rec = bbGetInputRecursive(); /*int nbFiles = */ Explore(DirName, rec); - CleanFilenames( bbGetInputIn() ); + CleanFilenames( DirName ); bbSetOutputOut(Filenames); bbSetOutputOutSimple(SimpleFilenames); } @@ -87,7 +87,7 @@ std::string FilesFromDirectory::NormalizePath(std::string const &pathname) std::string name = pathname; int size = name.size(); - if ( name[size-1] != FILESEPARATOR ) + if (!((name[size-1]=='/')||(name[size-1]=='\\'))) { name += FILESEPARATOR; }