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,8 +29,15 @@ 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
try
ax=ls(filename);
catch
ax=[];
end
end
dirlist = [dirlist, ax];