FilesLogger (version 1.0.0)
index
FilesLogger.html

This file gets all filenames and metadata.
 
~# python3 FilesLogger.py filesSpy.conf
 
>>> from os import environ
>>> environ['filesSpy.conf'] = 'filesSpy.conf'
>>> from SpyWare.FilesLogger import filesSpy
>>> filesSpy()                  # (using env) OR
>>> filesSpy('filesSpy.conf')   # (using config file name) OR
>>> filesSpy(argv=["FilesLogger.py", "filesSpy.conf"]) # (using argv)

 
Classes
       
builtins.object
Daemon
FilesLogger

 
class Daemon(builtins.object)
    This class implements the loop to get filename and metadata.
 
  Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
run_for_ever(self)
This function implements the loop to get filename and metadata.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class FilesLogger(builtins.object)
    This class gets filenames and metadata.
 
  Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
get_data(self, FilesLogger.html.DirEntry, directory: str) -> None
This function gets metadata and filename.
get_filenames(self, directory: str) -> None
This function gets recursives filenames.
launch(self)
This function starts the file logger.
persistent_save(self) -> None
This function saves data in file.
save(self, data: dict) -> int
This function saves metadata if isn't save before.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
config_load(filename: str = None, argv: List[str] = ['C:\\Program Files\\Python\\lib\\pydoc.py', '-w', 'FilesLogger']) -> int
This function loads the configuration using a the configuration file.
main(config_filename: str = None, argv: List[str] = ['C:\\Program Files\\Python\\lib\\pydoc.py', '-w', 'FilesLogger']) -> int
This function executes this script from the command line.

 
Data
        __all__ = ['Daemon', 'FilesLogger', 'main', 'config_load']
__author_email__ = 'mauricelambert434@gmail.com'
__copyright__ = '\nSpyWare Copyright (C) 2021, 2022 Maurice Lamb...ome to redistribute it\nunder certain conditions.\n'
__description__ = '\nThis file implements a complete spyware.\n'
__license__ = 'GPL-3.0 License'
__maintainer__ = 'Maurice Lambert'
__maintainer_email__ = 'mauricelambert434@gmail.com'
__url__ = 'https://github.com/mauricelambert/SpyWare'

 
Author
        Maurice Lambert