Skip to content

Instantly share code, notes, and snippets.

@almathis81
Last active May 26, 2023 16:56
Show Gist options
  • Save almathis81/e02c4b3c009ba94c40eb8788a8b17cf7 to your computer and use it in GitHub Desktop.
Save almathis81/e02c4b3c009ba94c40eb8788a8b17cf7 to your computer and use it in GitHub Desktop.
Wk13Project
import os
path = "."
files = os.listdir(path)
for file in files:
file_path = os.path.join(path, file)
file_size = os.path.getsize (file_path)
print ("Path: {}, File:{}, Size: {} bytes".format(file_path, file, file_size))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment