Module pyFolderOrganizer.FolderOrganizer

This module provide the FolderOrganizer class that is responsible for organizing a directory

class FolderOrganizer

class pyFolderOrganizer.FolderOrganizer.FolderOrganizer(directory: str, observe: bool = False, printing: bool = True, notifications: bool = False)
__init__(directory: str, observe: bool = False, printing: bool = True, notifications: bool = False)

Organizes the files in the given folder in sub folders by file types.

Parameters:
  • directory (str) – Path of the folder to be organized, can be full or relative path.

  • observe (bool) – Tracks the folder for changes and automatically organizes files. Defaults to False.

  • printing (bool) – If true, prints messages to the console. Defaults to True.

  • notifications (bool) – If true, creates windows toast messages. Defaults to False.

property directory

Get or Set the folder directory to be organized. Any existing path will be accepted.

property notifications

Enable or disable windows notifications, boolean value is accepted.

property observe

Enable or disable observer mode, boolean value is accepted.

openFolder()

Opens the folder that is organized in a new Explorer window.

organize()

Organizes the folder in sub-folders

property printing

Enable or disable console printing, boolean value is accepted.