#!/usr/bin/python3 import os file_list = os.listdir() for file in file_list: if os.path.isfile(file): print(file, '\t', os.path.getsize(file)) else: print(file,'/', os.path.getsize(file), sep='')