#NEWLINE# @ classmethod #NEWLINE# def OpenFileEntry( cls , path_spec , resolver_context = None ) : #NEWLINE# #INDENT# 'Opens a file entry object defined by path specification.\n\n    Args:\n      path_spec: the path specification (instance of PathSpec).\n      resolver_context: the optional resolver context (instance of\n                        resolver.Context). The default is None which will use\n                        the built in context which is not multi process safe.\n\n    Returns:\n      The file entry object (instance of vfs.FileEntry) or None if the path\n      specification could not be resolved.\n    ' #NEWLINE# file_system = cls . OpenFileSystem ( path_spec , resolver_context = resolver_context ) #NEWLINE# if ( resolver_context is None ) : #NEWLINE# #INDENT# resolver_context = cls . _resolver_context #NEWLINE# #UNINDENT# file_entry = file_system . GetFileEntryByPathSpec ( resolver_context ) #NEWLINE# resolver_context . ReleaseFileSystem ( file_system ) #NEWLINE# return file_entry