An elaborated lite file system tree implementation, Setup work to implement a media file system on the web. File system tree.

Timeline:

  • 0:00 - Intro
  • 0:46 - File class
  • 3:18 - Directory class
  • 4:40 - insert and has item check
  • 6:11 - get and remove the item
  • 6:55 - Item class
  • 8:30 - File System class
  • 9:29 - create file and directory
  • 9:54 - insert, has, get and remove the item
  • 10:11 - rename item
  • 10:57 - print directory
  • 11:48 - open directory
  • 12:38 - directory traversing
  • 17:30 - find the item
  • 19:42 - move the item

source code:
https://github.com/beforesemicolon/tutorials-files/blob/master/tree-file-system.js

#javascript #data-structure

File System Tree Implementation - JavaScript/Tree Data Structure
1.75 GEEK