listing parameters (wodSFTP / wodSFTP.NET / wodSFTPdll)

by udtman @, (7664 days ago)

What are the various listing options on the ftp component ?

Me.wodFtpDLX1.ListDir
like listdir a
listdir -aLF

etc...

or how can i find out ?

locked

Re: listing parameters

by Jasmine, (7663 days ago) @ udtman

Udt,

this really depends on the server. Usually -l and -a (or -la) are used, but there can be many more (such as -d).

I think they correlate with switches for 'ls' command on UNIX (well, more or less) so perhaps you want to read helpfile on some UNIX system for that command?

Regards

locked

Re: listing parameters

by Anyz, (7595 days ago) @ Jasmine

How can i restrict ListDir to search only current directory not the sub-directoies?

locked

Re: listing parameters

by Jasmine, (7594 days ago) @ Anyz

Anyz,

I am not sure what your question is. ListDir always requests directory listing from one directory. It cannot go into subdirectories at all. Why do you think it can? What results did you get?

If remote side is UNIX, and you use '-alR' switch then, hmm, perhaps you would go into subdirectories - but I am not sure that is the case.

Regards.

locked

Re: listing parameters

by Anyz, (7594 days ago) @ Jasmine

sorry it was my fault. Actually directory contains some hidden and system files which were also listed. I got them some files in subdirectories.

locked

Re: listing parameters

by Jasmine, (7594 days ago) @ Anyz

Anyz,

if you leave ListParams empty, most probably you will not see hidden files. But this really depends on the server implemenation too.

Regards.

locked