bug fix the ls does not find the target file or folder

time-shift
Marco Ratto 2010-10-11 12:33:08 +02:00
parent 5892695455
commit eb8d0b29aa
1 changed files with 10 additions and 3 deletions

View File

@ -29,9 +29,16 @@ for indPC=1:length(Parallel),
if isunix || (~matlab_ver_less_than('7.4') && ismac),
if Parallel(indPC).Local==0,
[check, ax]=system(['ssh ',Parallel(indPC).user,'@',Parallel(indPC).PcName,' ls ',Parallel(indPC).RemoteFolder,'/',PRCDir,'/',filename]);
if check ~ 0
ax=[];
end
else
ax=ls(filename);
try
ax=ls(filename);
catch
ax=[];
end
end
dirlist = [dirlist, ax];
else
@ -40,6 +47,6 @@ for indPC=1:length(Parallel),
else
ax=ls(filename);
end
dirlist = [dirlist; ax];
dirlist = [dirlist; ax];
end
end