Пример #1
0
  def GetFileEntryByPathSpec(self, path_spec):
    """Retrieves a file entry for a path specification.

    Args:
      path_spec: a path specification (instance of PathSpec).

    Returns:
      A file entry (instance of vfs.FileEntry) or None.
    """
    return compressed_stream_file_entry.CompressedStreamFileEntry(
        self._resolver_context, self, path_spec, is_root=True, is_virtual=True)
Пример #2
0
  def GetFileEntryByPathSpec(self, path_spec):
    """Retrieves a file entry for a path specification.

    Args:
      path_spec (PathSpec): a path specification.

    Returns:
      CompressedStreamFileEntry: a file entry or None if not available.
    """
    return compressed_stream_file_entry.CompressedStreamFileEntry(
        self._resolver_context, self, path_spec, is_root=True, is_virtual=True)
Пример #3
0
 def testInitialize(self):
     """Test the __init__ function."""
     file_entry = compressed_stream_file_entry.CompressedStreamFileEntry(
         self._resolver_context, self._file_system,
         self._compressed_stream_path_spec)
     self.assertIsNotNone(file_entry)
 def testIntialize(self):
     """Test the initialize functionality."""
     file_entry = compressed_stream_file_entry.CompressedStreamFileEntry(
         self._resolver_context, self._file_system,
         self._compressed_stream_path_spec)
     self.assertNotEqual(file_entry, None)