MCPcopy Index your code
hub / github.com/questdb/questdb / createSoftLink

Method createSoftLink

core/src/test/java/io/questdb/test/FilesTest.java:1547–1551  ·  view source on GitHub ↗
(Path coldRoot, Path srcFilePath, Path softLinkFilePath)

Source from the content-addressed store, hash-verified

1545 }
1546
1547 private static void createSoftLink(Path coldRoot, Path srcFilePath, Path softLinkFilePath) {
1548 Assert.assertEquals(0, Files.mkdirs(coldRoot, 509));
1549 Assert.assertEquals(0, Files.softLink(srcFilePath.$(), softLinkFilePath.$()));
1550 Assert.assertTrue(Os.isWindows() || Files.isSoftLink(softLinkFilePath.$())); // TODO: isSoftLink is not working on Windows
1551 }
1552
1553 private static void createTempFile(Path path, String fileName, String fileContent) {
1554 final int buffSize = fileContent.length() * 3;

Callers 2

testUnlinkMethod · 0.95

Calls 7

mkdirsMethod · 0.95
softLinkMethod · 0.95
isWindowsMethod · 0.95
isSoftLinkMethod · 0.95
$Method · 0.65
assertEqualsMethod · 0.45
assertTrueMethod · 0.45

Tested by

no test coverage detected