We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd8134e commit 2cf8266Copy full SHA for 2cf8266
src/test/java/io/ipfs/api/APITest.java
@@ -102,7 +102,9 @@ public void wrappedSingleFileTest() throws IOException {
102
103
@Test
104
public void dirTest() throws IOException {
105
- NamedStreamable dir = new NamedStreamable.FileWrapper(new File("java"));
+ Path test = Files.createTempDirectory("test");
106
+ Files.write(test.resolve("file.txt"), "G'day IPFS!".getBytes());
107
+ NamedStreamable dir = new NamedStreamable.FileWrapper(test.toFile());
108
List<MerkleNode> add = ipfs.add(dir);
109
MerkleNode addResult = add.get(add.size() - 1);
110
List<MerkleNode> ls = ipfs.ls(addResult.hash);
0 commit comments