Skip to content

Implement filesystem class with BrowserFS #10

@ashwinkjoseph

Description

@ashwinkjoseph

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

** Rest is to be discussed on call **

Additional context
Add any other context or screenshots about the task here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions