Design In-Memory File System
Explore how to design an in-memory file system in Go by implementing key functions such as directory creation, file listing, content addition, and file reading. This lesson helps you understand managing file system structures programmatically while preparing for coding interviews.
We'll cover the following...
We'll cover the following...
Statement
Design an in-memory file system by implementing a struct, FileSystem, which should provide the following functionalities:
-
Init(): Initializes the object of the system.
-
Ls(String path): If path is a file path, return a list that only contains the file’s name. If it’s a directory path, return the list of files ...