https://github.com/rcdmk/in-memory-file-system
An in-memory filesystem playground to learn Scala in vscode with metals.
https://github.com/rcdmk/in-memory-file-system
in-memory-filesystem metals sbt scala scalatest
Last synced: 11 months ago
JSON representation
An in-memory filesystem playground to learn Scala in vscode with metals.
- Host: GitHub
- URL: https://github.com/rcdmk/in-memory-file-system
- Owner: rcdmk
- Created: 2021-05-28T13:55:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-28T14:40:24.000Z (about 5 years ago)
- Last Synced: 2025-06-16T07:07:31.889Z (12 months ago)
- Topics: in-memory-filesystem, metals, sbt, scala, scalatest
- Language: Scala
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# In-memory Filesystem Scala Playground
An in-memory implementation of a simulated Unix shell with basic operations on an in-memory filesystem representation.
## Supported operations
- **cat** - reads file contents
- **cd** - changes current working directory
- **echo** - prints to std out, outputs to a file or appends output to a file
- **exit** - terminate app
- **ls** - lists directory contents
- **mkdir** - creates a directory
- **pwd** - prints working directory path
- **rm** - remove a file or directory (if empty)
- **touch** - creates an empty file
Only basic operations are supported at the moment. Piping is not supported.
## Executing
To execute this project locally, navigate to the root of the repository and run
```bash
$ sbt run
```
## Testing
To run the project tests, navigate to the root of the repository and run
```bash
$ sbt test
```