Wildcards - WeOnlyDo Discussion board

Wildcards (wodSFTP / wodSFTP.NET / wodSFTPdll)

by abe_dk, Thursday, January 13, 2005, 08:35 (7255 days ago)

Hi

I have to get files from a remote server, they are all named poperm.*.

I can't get them in a ListDir, here I just get the error No datasets found .

If I try in a cmd-screen I have to write dir 'poperm.*' to see them, otherwise I also get the error No datasets found .

How can I get these files with a ListDir??

Re: Wildcards

by wodSupport, Thursday, January 13, 2005, 09:57 (7255 days ago) @ abe_dk

Abe,

as seems to me, you cannot filter them on the remote side. Most probably you will have to call ListDir with not arguments, and then filter them on the local side.

But.. Are you capable of doing what you want using some other client, such as command-prompt's FTP client? If so, what command do you execute?

Re: Wildcards

by abe_dk, Thursday, January 13, 2005, 11:09 (7255 days ago) @ wodSupport

Hi

Is there a way to change directory or how do I set RemotePath (for a ListDir) to a Sub directory.

F.ex.
I'm standing i the temp-directory and my files are in the Sub-directory Sub. I don't know the full path, I only know where I'm standing and that my files is in the sub-directory.

Re: Wildcards

by wodSupport, Thursday, January 13, 2005, 11:13 (7255 days ago) @ abe_dk

Abe,

you must know what is your current path. When you connect to the server, check contents of RemotePath property - usually server will put you in your homedir. Once you know it, you just add or remove subdirectories from it.

Can you try that?