def dirent_from_path path
			dirent = @root
			path = file.expand_path(path).split('/')
			until path.empty?
				part = path.shift
				next if part.empty?
				return nil if dirent.file?
				return nil unless dirent = dirent/part
			end
			dirent
		end
def dirent_from_path path
			dirent = @root
			path = file.expand_path(path).split('/')
			until path.empty?
				part = path.shift
				next if part.empty?
				return nil if dirent.file?
				return nil unless dirent = dirent/part
			end
			dirent
		end
tries to get a dirent for path. return nil if it doesn't exist
 (change it)