Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTPAdapter: Use more precise time for 'timestampsOnUnixListings' option #1847

Conversation

themark147
Copy link

What about using -T option for listing? For exact definition of time?

definition of -T option:

-T      When printing in the long (-l) format, display complete time information for the file, including month, day, hour, minute, second, and year.  The -D option gives even more control over the output
             format.  This option is not defined in IEEE Std 1003.1-2008 (“POSIX.1”).

definition of -l is quite weird and changing over time (after 6 months)

If the modification time of the file is more than 6 months in the past or future, and the -D or -T are not specified, then the year of the last modification is displayed in place of the hour and minute
     fields.

what do you think about that suggestion? thanks 😊

@themark147
Copy link
Author

this is how look like files without -T option

-rw-r--r--@ 1 markuss  staff  0 May 17  2018 file_from_2018.csv
-rw-r--r--@ 1 markuss  staff  0 Jan 24 14:56 file_from_2025_today.csv

this is with -T option

-rw-r--r--@ 1 markuss  staff  0 May 17 12:48:00 2018 file_from_2018.csv
-rw-r--r--@ 1 markuss  staff  0 Jan 24 14:56:14 2025 file_from_2025_today.csv

@themark147 themark147 closed this Jan 24, 2025
@themark147
Copy link
Author

FTP dont support -T option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant