PowerShell and Python Together by Chet Hosmer

PowerShell and Python Together by Chet Hosmer

Author:Chet Hosmer
Language: eng
Format: epub
ISBN: 9781484245040
Publisher: Apress


The next step is to store the extracted results in a Python dictionary to produce a baseline. Once the dictionary baseline is created, the resulting dictionary can be stored and used for comparison. This way you can detect any new, modified, or deleted files from a target folder.

Note

Python dictionaries, much like traditional Webster-style dictionaries, have a Key and a Value, which are typically referred to as a Key/Value pair. In Python, both the Key and the Value can be complex, the only rule being that the Key must be a hashable type such as an integer, long, string, or tuple. The Value part of the Key/Value pair can be a list or other nonhashable data type. In addition, the dictionary’s keys must be unique (much like real dictionaries).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.