This project is a simple web application that lets you perform basic filesystem operations (create, edit, delete files) inside a workspace folder, all from your browser!
- Upload a folder (as a zip file) and see its contents listed in the app.
- Edit files by typing a command in the prompt box (e.g.,
Edit file.txt to say Hello). - Create new files with a command (e.g.,
Create newfile.txt with content Hello World). - Delete files with a command (e.g.,
Delete file.txt). - All operations happen inside a safe workspace directory on the server.
-
Install dependencies
pip install flask flask-cors
-
Start the server
python app.py
-
Open the app
- Go to http://localhost:5000/ in your browser.
-
Upload a Folder
- Click "Choose File" and select a zip file containing the files you want to work with.
- Click "Upload". The files will appear in the list below.
-
Prompt Box Commands
- To edit a file:
Edit filename.txt to say Hello - To create a file:
Create newfile.txt with content Hello World - To delete a file:
Delete filename.txt - After each command, the file list will update automatically.
- To edit a file:
-
See Results
- The result of your command will be shown below the prompt box.
- All file operations are limited to the workspace directory for safety.
- Only zip files are supported for upload.
- The prompt box expects commands in the formats shown above.