-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Task Description
Implement the abstract class for filesystem using BrowserFS
In the context of TPF, a file system should have the following behaviour:
- Should maintain keep track of the files and directories in it. (This is taken care of by browserFS itself)
- Should store references to files which can be used to retrieve and store content in the file (This is taken care of by browserFS itself)
- Should maintain a list of cursors, keeping track of the position of each of the cursor in the filesystem
- Should provide the option to change the working directory of a cursor
- Should provide the option to list the contents of the working directory of the cursor (if given a path it should list the contents in the given path and ignore the working directory of the cursor)
- Should have a method which accepts the content and metadata of a file and saves it to a specified path in the filesystem (expose API from browserFS)
- Should have a method for getting the content of a file given its path (expose API from browserFS)
- Should have a method which adds directories to the working directory of the cursor (if given a path, it should use the path instead of the working directory of the cursor)
- Should have a method which removes directories and files working directory of the cursor (if given a path, it should use the path instead of the working directory of the cursor)
Acceptance criteria for task
- Should call the browserFS install method passing a reference to itself when initializing. for reasoning, read comments here
** Rest is to be discussed on call **
Additional context
Add any other context or screenshots about the task here.
Metadata
Metadata
Assignees
Labels
No labels