rope.base.fscommands ==================== .. py:module:: rope.base.fscommands .. autoapi-nested-parse:: Project file system commands. This modules implements file system operations used by rope. Different version control systems can be supported by implementing the interface provided by `FileSystemCommands` class. See `SubversionCommands` and `MercurialCommands` for example. Attributes ---------- .. autoapisummary:: rope.base.fscommands.FileContent Classes ------- .. autoapisummary:: rope.base.fscommands.FileSystemCommands rope.base.fscommands.SubversionCommands rope.base.fscommands.MercurialCommands rope.base.fscommands.GITCommands rope.base.fscommands.DarcsCommands Functions --------- .. autoapisummary:: rope.base.fscommands.create_fscommands rope.base.fscommands.unicode_to_file_data rope.base.fscommands.file_data_to_unicode rope.base.fscommands.read_str_coding Module Contents --------------- .. py:data:: FileContent .. py:function:: create_fscommands(root) .. py:class:: FileSystemCommands .. py:method:: create_file(path) .. py:method:: create_folder(path) .. py:method:: move(path, new_location) .. py:method:: remove(path) .. py:method:: write(path, data) .. py:method:: read(path) .. py:class:: SubversionCommands(*args) .. py:attribute:: normal_actions .. py:attribute:: client .. py:method:: create_file(path) .. py:method:: create_folder(path) .. py:method:: move(path, new_location) .. py:method:: remove(path) .. py:method:: write(path, data) .. py:method:: read(path) .. py:class:: MercurialCommands(root) .. py:attribute:: hg .. py:attribute:: normal_actions .. py:attribute:: repo .. py:method:: create_file(path) .. py:method:: create_folder(path) .. py:method:: move(path, new_location) .. py:method:: remove(path) .. py:method:: write(path, data) .. py:method:: read(path) .. py:class:: GITCommands(root) .. py:attribute:: root .. py:attribute:: normal_actions .. py:method:: create_file(path) .. py:method:: create_folder(path) .. py:method:: move(path, new_location) .. py:method:: remove(path) .. py:method:: write(path, data) .. py:method:: read(path) .. py:class:: DarcsCommands(root) .. py:attribute:: root .. py:attribute:: normal_actions .. py:method:: create_file(path) .. py:method:: create_folder(path) .. py:method:: move(path, new_location) .. py:method:: remove(path) .. py:method:: read(path) .. py:method:: write(path, data) .. py:function:: unicode_to_file_data(contents: str, encoding=None, newlines=None) -> FileContent .. py:function:: file_data_to_unicode(data, encoding=None) .. py:function:: read_str_coding(source)