SftpURI.st
changeset 5211 945a2ac21f15
parent 4882 cdc1e27ab112
equal deleted inserted replaced
5210:7e214dedbc99 5211:945a2ac21f15
    57 pathExists:aPathname ftpClient:aFtpClient
    57 pathExists:aPathname ftpClient:aFtpClient
    58     |list|
    58     |list|
    59 
    59 
    60     (OpenError, FTPClient fileNotFoundErrorSignal) handle:[:ex|] do:[
    60     (OpenError, FTPClient fileNotFoundErrorSignal) handle:[:ex|] do:[
    61         list := aFtpClient directoryContentsOf:aPathname.
    61         list := aFtpClient directoryContentsOf:aPathname.
    62         ^ list size = 1 and:[list first = aPathname].
    62         ^ list size == 1 and:[list first = aPathname].
    63     ].
    63     ].
    64     ^ false.
    64     ^ false.
    65 ! !
    65 ! !
    66 
    66 
    67 !SftpURI methodsFor:'defaults'!
    67 !SftpURI methodsFor:'defaults'!