summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/file/filescan.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-09 23:37:37 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-09 23:37:37 (GMT)
commitb2fcd086c723116d59efe22d5ee44595dade36ed (patch)
tree0fc226c8c464e06508ea68c7a0e1befe011feb69 /Mac/Modules/file/filescan.py
parentc1a9cab8f05403ebf7a8812e69de8bdb3fa1080b (diff)
downloadcpython-b2fcd086c723116d59efe22d5ee44595dade36ed.zip
cpython-b2fcd086c723116d59efe22d5ee44595dade36ed.tar.gz
cpython-b2fcd086c723116d59efe22d5ee44595dade36ed.tar.bz2
Started on implementing support for FSCatalogInfo. Doesn't work yet, don't
try it.
Diffstat (limited to 'Mac/Modules/file/filescan.py')
-rw-r--r--Mac/Modules/file/filescan.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/Mac/Modules/file/filescan.py b/Mac/Modules/file/filescan.py
index 4b6b70e..a7963c2 100644
--- a/Mac/Modules/file/filescan.py
+++ b/Mac/Modules/file/filescan.py
@@ -134,8 +134,6 @@ class MyScanner(Scanner_OSX):
"CatPositionRec", # State variable, not too difficult
- "FSCatalogInfo", # Lots of fields, difficult struct
- "FSCatalogInfo_ptr", # Lots of fields, difficult struct
"FSIterator", # Should become an object
"FSForkInfo", # Lots of fields, difficult struct
"FSSearchParams", # Also catsearch stuff
@@ -180,6 +178,17 @@ class MyScanner(Scanner_OSX):
([('FSRef_ptr', 'fromFile', 'InMode')],
[('OptFSRefPtr', 'fromFile', 'InMode')]),
+
+ # FSCatalogInfo input handling
+ ([('FSCatalogInfoBitmap', 'whichInfo', 'InMode'),
+ ('FSCatalogInfo_ptr', 'catalogInfo', 'InMode')],
+ [('FSCatalogInfoAndBitmap_in', 'catalogInfo', 'InMode')]),
+
+ # FSCatalogInfo output handling
+ ([('FSCatalogInfoBitmap', 'whichInfo', 'InMode'),
+ ('FSCatalogInfo', 'catalogInfo', 'OutMode')],
+ [('FSCatalogInfoAndBitmap_out', 'catalogInfo', 'InOutMode')]),
+
]