Re: [swift-users] FileManager.copyItem not throwing?

2017-11-13 Thread Marco S Hyman via swift-users
On 11 Nov 2017, at 01:51, Marco S Hyman via swift-users wrote: > >> My report was closed as a duplicate of 30350792. > > Are you still seeing this on 10.13? I don’t know, let me test... Very good... the copy fails into the catch block as it should using Xcode 9.1 on

Re: [swift-users] FileManager.copyItem not throwing?

2017-11-11 Thread Marco S Hyman via swift-users
> On Nov 11, 2017, at 2:07 PM, John Brownie wrote: > > And that's the point. The throw does not happen. An error is logged, but > execution continues as though there was no error. Also... My workaround for this bug assumes you tested for the destination file presence

Re: [swift-users] FileManager.copyItem not throwing?

2017-11-11 Thread John Brownie via swift-users
And that's the point. The throw does not happen. An error is logged, but execution continues as though there was no error. John Howard Lovatt 12 November 2017 at 07:43 I don’t have any inside knowledge on this, i.e. I am not certain I am correct, but my

Re: [swift-users] FileManager.copyItem not throwing?

2017-11-11 Thread Howard Lovatt via swift-users
I don’t have any inside knowledge on this, i.e. I am not certain I am correct, but my understanding was that you were meant to let it throw and catch the error rather than test before hand. -- Howard. > On 11 Nov 2017, at 12:51 pm, Marco S Hyman via swift-users >

Re: [swift-users] FileManager.copyItem not throwing?

2017-11-10 Thread Marco S Hyman via swift-users
> Running on macOS 10.12.6, Xcode 8.3.2, I get to the copyItem call, which > shows an error on the console: > > 2017-11-11 11:18:25.931446+1000 MyApp[32662:2408351] open on /path/to/file: > Permission denied > > But it doesn't go to either of my catch blocks, but goes to the following >