@Override
            public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
                register(dir);
                return super.preVisitDirectory(dir, attrs);
            }
Register a watch key recursively in the given directory.

@param root the root directory
@throws IOException if unable to register a key
common/src/main/java/me/lucko/luckperms/common/storage/implementation/file/watcher/AbstractFileWatcher.java