Closed aperrin66 closed 4 years ago
It is up to you to decide, but I think it is better to have that decorator for the _is_file function as well. I mean putting the
@Decorators.retry_on_timeout
above theself._list_folder_contents(folder_path):
. I suggest it because of the nature of that decorator. Maybe you thought that this action of_is_file
is very very fast and do not need to ensure the connection.
It's not needed for _is_file()
, because there is no FTP operation in this method, it's just a check on the path.
Resolves #51
Added a decorator which re-initializes the FTP connection if it times out.