Added support for MDTM command in FTPFS#462
Conversation
|
Not sure how I would add tests for this. Are there any tests that run with an actual FTP server? Should I do extensive mocking to simulate a server that supports MDTM? |
|
I added a test to |
A new namespace "modified" was introduced to the `getinfo` function to potentially use cheaper commands compared to the general "details" namespace. In particular, `FTPFS` now uses the MDTM command if supported by the server.
A new namespace "modified" was introduced to the `getinfo` function to potentially use cheaper commands compared to the general "details" namespace. In particular, `FTPFS` now uses the MDTM command if supported by the server.
# Conflicts: # tests/test_memoryfs.py
althonos
left a comment
There was a problem hiding this comment.
Great work! A few fixes here and there, but the global structure is as intended 😄
|
Hi. Any update on this? |
|
@atollk : sorry for the delay, I had a very intense month but I have a bit more time now. I changed the current implementation a bit because the Instead, I kept the |
|
@atollk : All clear now. I'll leave you time to object if there is anything to change, ping me when you're done reading and I'll merge. |
|
Except for that one comment I made it looks good to me 👍 |
|
Perfect, merging then! Sorry for the delay. |
Type of changes
Checklist
Description
Fixes #456
Added a
getmodifiedfunction tofs.base.FSwhich defaults to callinggetinfo. InFTPFS, a check for the support ofMDTMwas added to provide a more efficient command for this specialized request.Two calls to
FS.getinfo(...).modifiedinfs.copywere replaced by calls toFS.getmodified.