import os

os.chdir('/home/webdev/Desktop')

res = os.listdir()
current = os.getcwd()
print(f'Root: {current}')

dires = [name for name in os.listdir(".") if os.path.isdir(name)]
print(f'Directories: {dires}')

files = [f for f in os.listdir('.') if os.path.isfile(f)]

temp = []
for f in files:
    sta = os.stat(f)
    size = str(sta.st_size) + 'bytes'
    # res = f, size
    res = {
        f: size
    }
    temp.append(res)
print(f'Files: {temp}')