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

Add additional handling of symbolic links #1

Merged
merged 7 commits into from
Jan 2, 2024
Merged

Add additional handling of symbolic links #1

merged 7 commits into from
Jan 2, 2024

Conversation

KitRifty
Copy link
Owner

@KitRifty KitRifty commented Jan 1, 2024

This PR contains some breaking changes.

Some special handling is required when it comes to directory symbolic links. On Windows, ReadDirectoryChangesExW will not read the subtree of a directory symbolic link despite bWatchSubtree set to true. On Linux, the current build didn't take symbolic links into account.

Now, the watcher can watch directory symbolic links.

Changes

  • Attempting to construct a FileSystemWatcher with a relative path that leads to outside of the game directory will now throw an error.
  • FileSystemWatcher.GetPath() will no longer be guaranteed to have a trailing separator.
  • Added FileSystemWatcher.WatchDirectoryLinks, which toggles whether to watch subdirectory symbolic links. By default, this is set to true.
  • FileSystemWatcher.RetryInterval is now deprecated and does nothing.

@KitRifty KitRifty force-pushed the sym-links branch 3 times, most recently from e2a70fe to 66f1ea9 Compare January 2, 2024 00:54
Disallow paths outside gamedir
Update PackageScript for multi-arch outputs
Bump version
@KitRifty KitRifty force-pushed the sym-links branch 2 times, most recently from a769ccc to be0afb4 Compare January 2, 2024 02:14
@KitRifty KitRifty force-pushed the sym-links branch 2 times, most recently from cc0e58c to 3e4b17c Compare January 2, 2024 02:43
@KitRifty KitRifty merged commit 63b75a2 into main Jan 2, 2024
3 checks passed
@KitRifty KitRifty deleted the sym-links branch January 2, 2024 03:20
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

Successfully merging this pull request may close these issues.

1 participant