adding isDir bool to FileRef