Questions tagged [file-forks]

16 questions
323
votes
26 answers

Code Sign Error in macOS Monterey, Xcode - resource fork, Finder information, or similar detritus not allowed

Already tried : Code Sign Error on macOS Sierra, Xcode 8 Please see image showing error CodeSign /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super\ Flow\ Flip.app cd…
iPhoneProcessor
  • 4,980
  • 6
  • 27
  • 49
12
votes
4 answers

Editing resource forks on the command line on Mac OS X

Mac OS X stores some files with resource forks. I need to create a file with a resource fork. The trouble is, I need to create this file on the command line. Is anyone aware of how you can create a file with a resource fork on the command line in…
Jesse Michaels
6
votes
3 answers

How to determine file's extended attributes and resource forks with their size on Mac OSX?

I had written a small utility for creating xml for any folder structure and comparison of folders via generated xml that supports both win and Mac as platforms. However on Mac, recursively calculating folder size don't adds up to total size. On…
Gagandeep Singh
  • 5,755
  • 4
  • 41
  • 60
6
votes
1 answer

Does APFS actually support Named Forks or just Resource Forks and Extended Attributes?

From version 8.1 until Mountain Lion (10.8), the OS supported a concept called "Named Forks". Named forks are equivalent to "Alternate Data Streams" in Windows. There is a ton of confusion on the internet now between named forks vs the resource fork…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
6
votes
1 answer

When did Apple deprecate or stop publishing the APIs for using named forks, the forks other than the data and resource fork?

Back in the day, one of the Quirks of the Macintosh OS was that files had two "forks", a "resource fork" which held resources used by software through dedicated resource APIs, and a "data fork", which held the plain old data like on other systems,…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
4
votes
2 answers

How to read and write resource forks in OS X 64 bit applications

Writing an archival utility, I need to be able to read and write resource forks on Mac OS X file systems. There used to exist FSOpenFork and related functions, but current documentation both online and included with Xcode (v7.1) does not even…
Thomas Tempelmann
  • 11,045
  • 8
  • 74
  • 149
4
votes
2 answers

Copy Mac com.apple.ResourceFork extended attribute causing "Argument list too long"

I'm trying to copy extended attributes from one file to another using the OSX "xattr" utility. The background is that we are building a backup tool and the files/structure must retain all attributes, ACLs, etc... Everything is working fine except…
Chris
  • 55
  • 1
  • 5
3
votes
1 answer

Handling archives with resource forks on non-HFS file-systems

I'm working on a website that is supposed to store compressed archive files for downloading, for different platforms (Mac and Windows). Unfortunately, the Mac version of the download uses "resource forks", which I understand is a vendor-specific…
Christoph Burschka
  • 4,467
  • 3
  • 16
  • 31
3
votes
3 answers

What are the APIs for working with HFS+ named forks?

I know that resource forks are deprecated in Mac OS X. It's not clear whether the less well known and little used named forks are also deprecated. HFS+ actually supports an arbitrary number of arbitrary length forks for any file. (Mac's named forks…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
3
votes
3 answers

Check for resource fork in Objective C

How do i check whether a file exists with resource fork or not? Note : With out using the API's of CarbonCore->Resources.h, Since they are deprecated. I will be able to open the file where there exist resource fork or not. But i need to check…
Abdul Naveed
  • 567
  • 2
  • 9
2
votes
0 answers

FSOpenFork does not work in 64 bit Lion OSx

FSOpenFork(&fileRef, forkName.length, forkName.unicode, permissions, (FSIORefNum *)forkReference); Is not working properly in 64 bit lion OSX, We can run same project in 32 bit and 64 bit. When we run in 32 bit FSOpenFork returns the data fork…
Ajay
  • 349
  • 3
  • 12
2
votes
1 answer

In Python, how to set a resource fork to a file having an extension to open another application under Mac OS X

After having created a text file whose extension is ".log" (or ".txt") under Mac OS X, I used to force it to be opened with Excel instead of a text editor or console when clicking it, with the following code : pathlog=os.path.join(d,…
Eric H.
  • 2,152
  • 4
  • 22
  • 34
2
votes
2 answers

How to programmatically access file resource forks on Snow Leopard?

I was recently wondering how Mac OS X stores thumbnails of files. After some Googling, I found out that about "resource forks", a feature apparently unique to Apple's HFS file systems. I don't really like the idea of having resource forks around,…
user602513
  • 21
  • 3
2
votes
1 answer

How do I iterate over a Mac Resource Fork

I want to be able to iterate over a Mac OS Resource Fork so a Cocoa Window can show how many resources there is for a specific resource type (I.e., 'MADI'). I want to use the (yes, I know they're deprecated) Carbon Resource Manager functions. The…
MaddTheSane
  • 2,981
  • 24
  • 27
2
votes
2 answers

Is it safe to ignore OS X resource forks and DS_Store files?

We're working with a webdav server that interacts with Mac Finder. We've noticed that at least half of the requests that Finder makes when copying files and folders to the server involve several extra files: A .DS_Store file for each folder A…
Arzaquel
  • 1,412
  • 2
  • 11
  • 16
1
2