filezen.simpleScanner package

Submodules

filezen.simpleScanner.extensionMapper module

Contains dictionary of mappings for simple scanning. Defines the folders where a particular filetype will be moved.

filezen.simpleScanner.simplescanner module

NOTE ON SIMPLESCANNER

  • This program uses a predefined mapping

to store a particular file type from the input directory.

  • Validates the folder location and moves a file

according to the mapping.

  • If a file with the same name is already present in

that mapping directory, then the file won’t be moved.

class filezen.simpleScanner.simplescanner.SimpleScanner

Bases: filezen.scanner.scanner.Scanner

This class moves the input files using a predefined mapping. Inherits some methods from Scanner.

cleanDirectory(inputPath, outputPath=None)

The main functions which takes inputPath & outputPath and validates them. Then calling the required functions in order to move the files to their respective locations

Parameters:
  • outputPath (string) – absolute path of the folder containing output files
  • inputPath (string) – absolute path of the folder containing input files
Returns:

json containing list of file that were moved/not-moved

setOutputPath(outputPath)

set the output folder

Parameters:outputPath (string) – the output folder where the files needs to be moved

Module contents