Pkg.HFSPlus
— API for parsing HFS+ file systems¶
Overview¶
The Pkg.HFSPlus
module contains the API for parsing HFS+ file systems.
Enumerating Files¶
The following code example demonstrates how to enumerate files in an HFS+ file system:
from Pro.Core import *
from Pkg.HFSPlus import *
def enumerateFiles(fname):
c = createContainerFromFile(fname)
if c.isNull():
return
obj = HFSPlusObject()
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.HFSPlus module API.
Classes:
This class represents an HFS+ file system.
- class HFSPlusObject¶
Bases:
Pro.Core.CFFObject
This class represents an HFS+ file system.