The FileSystemFileEntry interface's method file() returns a the directory entry.
file()
MDN Reference