Spaces:
Sleeping
Sleeping
| 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) |