Spaces:
Sleeping
Sleeping
File size: 229 Bytes
5e3e553 | 1 2 3 4 5 6 7 8 9 10 11 12 | import os
def read_file(path):
with open(path, "r") as f:
return f.read()
def write_file(path, content):
with open(path, "w") as f:
f.write(content)
def list_files(path="."):
return os.listdir(path) |