Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

trey5498

macrumors regular
Original poster
Jun 16, 2008
191
0
simple question which I thought I had working.

here is what I have:
Code:
[fileManager copyPath:@"Test.txt" toPath:@"/library/test" handler:nil];


if the copyPath is on the mac already it works, but if it is out of a mounted dmg it does seem to work. The application is being run out of the dmg mounted directory, should this not work??
 
You're not trying to write to the disk image, are you? Normally, disk images used to distribute applications are read-only.
 
No I have a disk image that I will be moving the files from to the Mac Harddrive. However I can't seem to find the path. All the file including the Application are inside the disk image.
 
Found it. Never would have thought to look in /volumes/<dmg name>

used to windows when it comes to paths.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.