ensure that mountpoint is ready
This commit is contained in:
Armin Schrenk
2023-03-15 11:37:02 +01:00
parent 7a0d255bd3
commit a67477bf3b

View File

@@ -51,8 +51,13 @@ public final class MountWithinParentUtil {
if (SystemUtils.IS_OS_WINDOWS) {
Files.setAttribute(hideaway, WIN_HIDDEN_ATTR, true, LinkOption.NOFOLLOW_LINKS);
}
while (!Files.notExists(mountPoint)) {
Thread.sleep(1000);
}
} catch (IOException e) {
throw new MountPointPreparationException(e);
} catch (InterruptedException e) {
throw new MountPointPreparationException(e);
}
}
}