Problem with get all files's attribute in current (wodSFTP / wodSFTP.NET / wodSFTPdll)
I would like to get all files's attribute in current folder and subfolder but I could not get it.
From the code below, Attributes event will be called only one time. I have no idea why.
Here is how i do (C#)
-----------------------------------------------
void sftp_LoopItem(ref string LocalFile, ref string RemoteFile, wodFtpDLXComLib.DirItemTypes ItemType, ref bool Skip)
{
sftp.GetAttributes(RemoteFile, false);
}
void sftp_Attributes(int Size, int Uid, int Gid, int Permissions, DateTime AccessTime, DateTime ModificationTime)
{
Console.WriteLine( ModificationTime + ModificationTime +
);
}
Re: Problem with get all files's attribute in c
Hello,
To receive all files from some folder and subfolder, you need to use LoopFiles Method. You can collect that filenames in LoopItem Event. Put that files in collection and in Done Event call GetAttributes Method to receive file attributes.
More help for LoopFiles Method you can find here:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~LoopFiles.html
More help for LoopItem Event you can find here:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~LoopItem_EV.html
Let us know how it goes.
Regards,
Drazen