I want to get a directory listing from an S3 bucket, with filenames and modification dates, using SFTP. Here’s my setup, based on the MBS example:
curl.CollectDebugMessages = True
curl.CollectOutputData = False // or True, doesn't seem to matter
curl.OptionVerbose = True
curl.OptionDirListOnly = False
curl.OptionCustomRequest = "MLSD"
curl.OptionWildcardMatch = False
After the transfer, curl.OutputData looks like this:
-rwxr--r-- 1 - - 2971 Apr 21 16:00 My Filename Contains Spaces.xlsx
This is a pain to parse, and I have no idea how “2971” relates to the actual year 2024.
I thought FileInfos would be the answer, and indeed it does return an array, but all the fields are unpopulated
Filezilla is somehow able to display all info including the full modification date to the second in its directory listing.
3 posts - 2 participants