Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X: FileUtils.moveToTrash on a link deletes the link target #206

Closed
mklhmnn opened this issue Mar 17, 2013 · 1 comment
Closed

OS X: FileUtils.moveToTrash on a link deletes the link target #206

mklhmnn opened this issue Mar 17, 2013 · 1 comment

Comments

@mklhmnn
Copy link

mklhmnn commented Mar 17, 2013

Create a symbolic link which targets a directory. Now invoke FileUtils.moveToTrash on this link. The link will remain, but the target will be deleted.

@twall
Copy link
Contributor

twall commented Mar 24, 2013

moveToTrash uses FSPathMoveObjectToTrashSync to do its work, for which this link suggests both the problem and possible solution. It makes use of FSPathMakeRefWithOptions which appears to be deprecated in OSX 10.8.

@twall twall closed this as completed in 6fdb214 Mar 24, 2013
mstyura pushed a commit to mstyura/jna that referenced this issue Sep 9, 2024
…bout to run (java-native-access#206)

Motivation:

If we cancel a timeout as its remaining time is elapsed we need to ensure we also call quiche_conn_on_timeout(...) as otherwise we may not produce the required  data.

Modifications:

Call run() directly when a timeout is elepsed

Result:

Timeouts are handled correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants