:py:mod:`dissect.qnxfs.qnx4` ============================ .. py:module:: dissect.qnxfs.qnx4 Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.qnxfs.qnx4.QNX4 dissect.qnxfs.qnx4.INode4 .. py:class:: QNX4(fh: BinaryIO) QNX4 filesystem implementation. :param fh: A file-like object of the volume containing the filesystem. .. py:attribute:: fh .. py:attribute:: block_size .. py:attribute:: inode .. py:attribute:: root .. py:method:: get(path: str | int, node: INode4 | None = None) -> INode4 Return an inode object for the given path or inode number. :param path: The path or inode number. :param node: An optional inode object to relatively resolve the path from. .. py:class:: INode4(fs: QNX4, inum: int) .. py:attribute:: fs .. py:attribute:: inum .. py:method:: __repr__() -> str .. py:property:: inode :type: dissect.qnxfs.c_qnx4.c_qnx4.qnx4_inode_entry Return the inode entry. .. py:property:: name :type: str Return the file name. .. py:property:: size :type: int Return the file size. .. py:property:: uid :type: int Return the owner user ID. .. py:property:: gid :type: int Return the owner group ID. .. py:property:: ftime :type: datetime.datetime Return the file creation time. .. py:property:: mtime :type: datetime.datetime Return the file modification time. .. py:property:: atime :type: datetime.datetime Return the file access time. .. py:property:: ctime :type: datetime.datetime Return the file change time. .. py:property:: mode :type: int Return the file mode. .. py:property:: type :type: int Return the file type. .. py:property:: nlink :type: int Return the number of hard links. .. py:property:: status :type: int Return the file status. .. py:property:: link :type: str Return the symlink target. .. py:method:: is_dir() -> bool Return whether this inode is a directory. .. py:method:: is_file() -> bool Return whether this inode is a regular file. .. py:method:: is_symlink() -> bool Return whether this inode is a symlink. .. py:method:: is_block_device() -> bool Return whether this inode is a block device. .. py:method:: is_character_device() -> bool Return whether this inode is a character device. .. py:method:: is_device() -> bool Return whether this inode is a device. .. py:method:: is_fifo() -> bool Return whether this inode is a FIFO file. .. py:method:: is_socket() -> bool Return whether this inode is a socket file. .. py:method:: is_ipc() -> bool Return whether this inode is an IPC file. .. py:method:: listdir() -> dict[str, INode4] Return a directory listing. .. py:method:: iterdir() -> collections.abc.Iterator[tuple[str, INode4]] Iterate directory contents. .. py:method:: dataruns() -> list[tuple[int, int]] Return the data runlist. .. py:method:: open() -> BinaryIO Return a file-like object for reading the file.