:py:mod:`dissect.target.plugins.os.unix.generic` ================================================ .. py:module:: dissect.target.plugins.os.unix.generic Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.target.plugins.os.unix.generic.GenericPlugin Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: dissect.target.plugins.os.unix.generic.calculate_last_activity .. py:class:: GenericPlugin(target: dissect.target.target.Target) Bases: :py:obj:`dissect.target.plugin.Plugin` Generic plugin for Unix targets. .. py:method:: check_compatible() -> None Perform a compatibility check with the target. This function should return ``None`` if the plugin is compatible with the current target (``self.target``). For example, check if a certain file exists. Otherwise it should raise an :class:`UnsupportedPluginError`. :raises UnsupportedPluginError: If the plugin could not be loaded. .. py:method:: activity() -> datetime.datetime | None Return last seen activity based on filesystem timestamps. .. py:method:: install_date() -> datetime.datetime | None Return the likely install date of the operating system. .. py:function:: calculate_last_activity(folder: pathlib.Path, recursive: bool = False) -> datetime.datetime | None