Read File From A Single Directory Into A Python Object
This pulls all the files in a given directory into an object with the filename (minus extension) as the key to the content
Code
=
=
if
]
=
=
return
######################
=
=
Results
{'BRAVO': 'BRAVO file',
'alfa': 'alfa file',
'charlie': 'charlie file',
'delta': 'delta file',
'echo': 'echo file',
'fOxtrOt': 'fOxtrOt file',
'golf': 'golf file',
'hotel': 'hotel file'}