Pkg.EXT — API for parsing EXT2, EXT3 and EXT4 file systems

Overview

The Pkg.EXT module contains the API for parsing EXT2, EXT3 and EXT4 file systems.

Enumerating Files

The following code example demonstrates how to enumerate files in an EXT file system:

from Pro.Core import *
from Pkg.EXT import *

def enumerateFiles(fname):
    c = createContainerFromFile(fname)
    if c.isNull():
        return
    obj = EXTObject()
    if not obj.Load(c) or not obj.Initialize():
        return
    it = obj.FSIterator("/")
    while it.HasNext():
        e = it.Next()
        print(e.Name())

Module API

Pkg.EXT module API.

Classes:

EXTObject()

This class represents a EXT2, EXT3, or EXT4 file system.

class EXTObject

Bases: Pro.Core.CFFObject

This class represents a EXT2, EXT3, or EXT4 file system.