<s> """<STR_LIT>""" <EOL> import pybde <EOL> from dfvfs import dependencies <EOL> from dfvfs . file_io import file_object_io <EOL> from dfvfs . lib import bde <EOL> from dfvfs . lib import errors <EOL> from dfvfs . resolver import resolver <EOL> dependencies . CheckModuleVersion ( u'<STR_LIT>' ) <EOL> class BDEFile ( file_object_io . FileObjectIO ) : <EOL> """<STR_LIT>""" <EOL> def _OpenFileObject ( self , path_spec ) : <EOL> """<STR_LIT>""" <EOL> if not path_spec . HasParent ( ) : <EOL> raise errors . PathSpecError ( <EOL> u'<STR_LIT>' ) <EOL> file_object = resolver . Resolver . OpenFileObject ( <EOL> path_spec . parent , resolver_context = self . _resolver_context ) <EOL> bde_volume = pybde . volume ( ) <EOL> bde . BDEVolumeOpen ( <EOL> bde_volume , path_spec , file_object , resolver . Resolver . key_chain ) <EOL> return bde_volume <EOL> @ property <EOL> def is_locked ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _file_object . is_locked ( ) </s>
