• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Download fileSystem data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Download fileSystem data
      • From: "Stephen J. Butler" <email@hidden>
  • Prev by Date: ToolTips for Matrix Cells
  • Next by Date: Re: Download fileSystem data
  • Previous by thread: ToolTips for Matrix Cells
  • Next by thread: Re: Download fileSystem data
  • Index(es):
    • Date
    • Thread