Conversation
|
@magnus-madsen |
|
@magnus-madsen |
|
Approximately like so: Note also the use of IOException. |
Wouldn't this catch other unrelated exceptions thrown by the continuation? |
What about the |
Good catch, add it too. |
|
Actually, it looks like this doesn't throw an |
|
We ignore security exceptions. The Files class throws IOExs on general. |
|
Anyway, I think you look at each Files.X op, add its exceptions (except for SecurityEx) plus the InvalidPath thing and that is what you should catch. |
|
So with that I think it should be possible to fill out this handler. And then we can iterate. |
What about this? |
|
That's ok for now. We will deal with that later when we add support for java exceptions to the effect system. |
|
@magnus-madsen |
|
Don't extend IOError. We can do it later, but doing it now causes breakages. |
|
I assume it's okay now? |
|
I assume handling |
Please go ahead. |
|
@sockmaster27 This looks almost ready? If the list() operation is giving trouble, we could defer it. |
|
I got list to work by using the old |
That's acceptable. We prefer nio, but its totally OK to use file if necessary. Similarly to using FileReader etc. |
|
Looks good: I suggest to next duplicate and split or split and duplicate, if you prefer. |
|
In parallel you can also start looking into the Http effect. The design there is less clear, though. |
Fixes #9032