Skip to content

Help with copy files on MacOS #3784

Discussion options

You must be logged in to vote

I'm trying to get to the root folder of the MacOs main drive, which is where the folder resides for all users. This is before the uSers tree in the hierarchy

Gotcha. I saw you using ~ which would resolve to the user profile folder and thought you were having issues with Cake doing that.

In MacOS the root folder would be /System:

var filePath = new FilePath("/System/Library/Fonts/Supplemental/Arial Unicode.ttf");
CopyFile(filePath, "./MyFont.ttf");

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nick5454
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nick5454
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants