Download fileSystem data
Download fileSystem data
- Subject: Download fileSystem data
- From: Leonardo <email@hidden>
- Date: Sat, 30 Nov 2013 10:40:31 +0100
- Thread-topic: Download fileSystem data
Hi,
actually I ask a remote machine for
contentsOfDirectoryAtPath
Then for each file I ask for
attributesOfItemAtPath
And check the NSFileType to verify whether the file is
NSFileTypeDirectory
NSFileTypeRegular
NSFileTypeSymbolicLink
Then I check
isFilePackageAtPath
kLSItemInfoIsInvisible
kFSNodeLockedMask
kFSCatInfoCreateDate
kFSCatInfoContentMod
kFSCatInfoBackupDate
kFSCatInfoAccessDate
These queries take a long time on a remote machine.
Is a faster way to get all of that? I thought to use a Terminal command
throughan NSTask (e.g. "ls -la" plus other options), but honestly I don't
know how to filter the query and get the smallest necessary data. Any hint?
Regards
-- Leonardo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden