Post

Replies

Boosts

Views

Activity

COPYFILE with Swift ?
I've looked for a while and maybe it's my search parameters but can't find doing this with Swift (5). An example I've looked at I need to translate somehow ... https://searchcode.com/file/101621017/OpenEmu/OEFileManager.mSo far I've only managed to copy a file,let from_cchar = from.path.cString(using: .utf8)! let to_cchar = to.path.cString(using: .utf8)! let flags: copyfile_flags_t = UInt32(bitPattern: COPYFILE_DATA) let success = copyfile(from_cchar, to_cchar, nil, flags)I need to implement COPY_QUIT but no idea how to reference the file copy ? (will be async)
6
0
2.0k
Jun ’19