should use full path for keys in filemap and dirmap = what if there are two directories with the same name??
