Working on file reading (Not working right now)

This commit is contained in:
Caleb Gardner
2020-11-24 22:26:16 -06:00
parent 5761ad59cf
commit 4f058f2f31
5 changed files with 122 additions and 23 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func (r *Reader) GetInodeFromEntry(en *directory.Entry) (*inode.Inode, error) {
}
//GetInodeFromPath returns the inode at the given path, relative to root.
//The given path can start or without "/".
//The given path can start with or without "/"
func (r *Reader) GetInodeFromPath(path string) (*inode.Inode, error) {
path = strings.TrimSuffix(strings.TrimPrefix(path, "/"), "/")
pathDirs := strings.Split(path, "/")