You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Python to see how long a folder has been in my SFTP for, we have another process that parses the documents in these folders and deletes them, however if it fails to parse a single document or more, the folder won't be deleted.
So I am trying to create a report based on this statistic, and I am using .stat(folder path).st_mtime to get the modified time of the folder, however this returns a timestamp of: 2416060652, which if you translate, becomes: 2046-07-24 16:57:32
This time is the same for every folder in the SFTP (and I know they're all different)
The time on the SFTP server is correct, and the time on filezilla is showing correct.
Can anyone please help me understand why I am getting an incorrect (& constant) timestamp?
Hi,
I am using Python to see how long a folder has been in my SFTP for, we have another process that parses the documents in these folders and deletes them, however if it fails to parse a single document or more, the folder won't be deleted.
So I am trying to create a report based on this statistic, and I am using .stat(folder path).st_mtime to get the modified time of the folder, however this returns a timestamp of: 2416060652, which if you translate, becomes: 2046-07-24 16:57:32
This time is the same for every folder in the SFTP (and I know they're all different)
The time on the SFTP server is correct, and the time on filezilla is showing correct.
Can anyone please help me understand why I am getting an incorrect (& constant) timestamp?
Cheers.
Code:
Output:
The text was updated successfully, but these errors were encountered: