getting files with *.* - WeOnlyDo Discussion board

getting files with *.* (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Marcos, Monday, September 12, 2005, 16:06 (7012 days ago)

Hi,
We are making test about wodSFTP and we have found a problem. We need to get files from a server but we need to get all files. Because of we don't know the name of this files we need to use something like *.* but I get the next error Illegal characters in path.
This is the code.-

sftp1.GetFile (chdir,PathYFileName);//chdir= ./ PathYFileName= *.*

I have seen that the method ListDir should list all files but it returns a void and it doesn't list anything.

Could you tell me how to resolve this trouble?

Re: getting files with *.*

by wodSupport, Monday, September 12, 2005, 16:35 (7012 days ago) @ Marcos

Marcos,

hi. I have never seen that error before. Are you sure you used proper
arguments with GetFile? You should use LocalPath and RemotePath, in their full expression, such as

c:somefoldersomefile.txt (for LocalPath)
/home/joe/something.txt (for RemotePath)

also, <b>you cannot use wildcards</b> in GetItem.

I suggest you use GetFiles (plural) instead, perhaps that will work for you?

BTW result of ListDir call can be found in ListItem property, or in ListItems event.

Hope I helped.