__author__ = "Gil Ortiz"
__version__ = "1.1"
__date_last_modification__ = "6/27/2021"
__python_version__ = "3"
__notes__ = "PEP8 compliant | command line execution"

import os
import sys


def main():
    start = '/'
    if len(sys.argv) > 1:
        start = sys.argv[1]
    try:
        with os.scandir(start) as entries:
            for entry in entries:
                print(entry.name)
    except Exception as e:
        print(f'Failed to read the folder {start}: ' + str(e))
    # raise


if __name__ == '__main__':
    main()
