i using winscp .net library. facing problems cannot resolve since day. achieve file name creation date. know how can achieve that? stack.
tried unfortunately source contains not whole path ftp folder
c:\folder1\folder2\file but takes folder2 root ftp folder
session.getfiles(source, destination, removesource).check() if have entire path file simple use:
file.getcreationtime(source)
is looking for?
dim sessionoptions new winscp.sessionoptions { ... initialize ftp parameters here ... } using session winscp.session = new winscp.session session.open(sessionoptions) dim fileinfos winscp.remotedirectoryinfo = session.listdirectory(ftpfolder) each ftpfile winscp.remotefileinfo in fileinfos.files ' here file date: dim filedate date = ftpfile.lastwritetime next end using
Comments
Post a Comment