Pkg.SquashFS — API for parsing SquashFS file systems¶
Overview¶
The Pkg.SquashFS module contains the API for parsing SquashFS file systems.
Enumerating Files¶
The following code example demonstrates how to enumerate files in a SquashFS file system:
from Pro.Core import *
from Pkg.SquashFS import *
def enumerateFiles(fname):
c = createContainerFromFile(fname)
if c.isNull():
return
obj = SquashFSObject()
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.SquashFS module API.
Classes:
This class represents a SquashFS file system.
- class SquashFSObject¶
Bases:
Pro.Core.CFFObjectThis class represents a SquashFS file system.
The class provides file system support through the CFS interface inherited from
CFFObject.