Skip to content

[ftp] Add get_modified_time#1559

Open
staceybeard wants to merge 4 commits into
jschneier:masterfrom
staceybeard:ftp-get-modified-time
Open

[ftp] Add get_modified_time#1559
staceybeard wants to merge 4 commits into
jschneier:masterfrom
staceybeard:ftp-get-modified-time

Conversation

@staceybeard

Copy link
Copy Markdown

Summary

Implemented get_modified_time in the FTPStorage class, from the Storage interface (via BaseStorage).

This function returns a file's last updated timestamp as a datetime value.

What's Included

  • storages/backends/ftp.pyget_modified_time function with helper function _get_file_last_modified_details (modeled on _get_dir_details). This function uses MLST to get last modified data for a given file.

  • tests/test_ftp.py — Unit tests for success and error cases in the new function.

Notes

@mschoettle

Copy link
Copy Markdown

@jschneier Any chance this can be considered to be included?

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.

2 participants