.. _f-copyfile: module ``homeblog.copyfile`` ============================ .. inheritance-diagram:: ensae_teaching_cs.homeblog.copyfile Short summary +++++++++++++ module ``ensae_teaching_cs.homeblog.copyfile`` Copy files :githublink:`%|py|6` Classes +++++++ +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +==============================================================================+========================================================================================================================+ | :class:`CopyFileForFtp ` | This classes maintains a list of files and does some verifications in order to check if a file was modified or not ... | +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :class:`FileToCopy ` | | +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------+ Static Methods ++++++++++++++ +----------------------------------------------------------------------------------------------------------------------+-------------------------+ | staticmethod | truncated documentation | +======================================================================================================================+=========================+ | :meth:`convert_st_date_to_datetime ` | | +----------------------------------------------------------------------------------------------------------------------+-------------------------+ Methods +++++++ +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | method | truncated documentation | +========================================================================================================================+====================================================================+ | :py:meth:`__init__ ` | | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :py:meth:`__init__ ` | constructor | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :py:meth:`__str__ ` | | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`add_if_modified ` | Adds a file to self.modifiedList if it was modified. | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`copy_file ` | Processes a file copy. | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`copy_file_contains ` | :meth:`copy_file` | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`copy_file_ext ` | :meth:`copy_file`, | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`has_been_modified_and_reason ` | Returns True, reason if a file was modified or False, None if not. | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`save_dates ` | Saves the status of the copy. | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`set_date ` | | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`set_md5 ` | | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`set_mdate ` | | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ | :meth:`update_copied_file ` | Updates the file in copyFiles (before saving), update all field. | +------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: ensae_teaching_cs.homeblog.copyfile :members: :special-members: __init__ :show-inheritance: