.. nobodd: a boot configuration tool for the Raspberry Pi .. .. Copyright (c) 2023-2026 Dave Jones .. Copyright (c) 2023-2026 Canonical Ltd. .. .. SPDX-License-Identifier: GPL-3.0 ============ nobodd.path ============ .. module:: nobodd.path Defines the :class:`FatPath` class, a Path-like class for interacting with directories and sub-directories in a :class:`~nobodd.fs.FatFileSystem` instance. You should never need to construct this class directly; instead it should be derived from the :attr:`~nobodd.fs.FatFileSystem.root` attribute which is itself a :class:`FatPath` instance. .. code-block:: pycon >>> from nobodd.disk import DiskImage >>> from nobodd.fs import FatFileSystem >>> img = DiskImage('test.img') >>> fs = FatFileSystem(img.partitions[1].data) >>> for p in fs.root.iterdir(): ... print(repr(p)) ... FatPath(, '/foo') FatPath(, '/bar.txt') FatPath(, '/setup.cfg') FatPath(, '/baz') FatPath(, '/adir') FatPath(, '/BDIR') FatPath ======= .. autoclass:: FatPath Support functions ================== .. autofunction:: get_cluster