Commit Graph

5 Commits

Author SHA1 Message Date
aditya-K2
680b41cb6e Updated FileNode Struct
Added New Field `absolutePath` to FileNode struct. This helps in adding
the song to the playlist through the Add Button.
2021-10-17 21:51:01 +05:30
aditya-K2
91de613758 Added Print() Method to FileNode Struct
This Method Is Useful for Printing the Children of the Node
recursively. Useful for debugging Purpose.
2021-10-11 13:54:51 +05:30
aditya-K2
99e0e8e615 Added generateDirectoryTree()
This function which generates a Directory Tree
from a given path string
for e.g
    if the String that is given is "home/what/dir" , "home/hello/foo"
	then it will return a FileNode ( Struct )
	which looks like this
	head{
	    [{
		[
		    {
			[ { [] dir } ]
			what
		    },
		    {
			[ { [] foo } ]
			hello
		    }
		]
		home
	    }]
	    "root"
	}
2021-10-11 12:09:24 +05:30
aditya-K2
94e86335b2 Added addChild and addChildNode functions (WIP) 2021-10-10 01:29:22 +05:30
aditya-K2
0c107c3a72 All the File Browsing Related Functions and Structs are inside the FileBrowser.go file.
The Idea is to Implement a tree of sorts (At least for now) and then displaying the children of the current Node and traversing them.
2021-10-09 22:34:11 +05:30