File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
main/java/io/github/benas/unixstream
test/java/io/github/benas/unixstream/components Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ static UnixStream<Path> ls(final Path directory) throws IOException {
134
134
* @return a new UnixStream with the absolute path of the current directory.
135
135
*/
136
136
static UnixStream <Path > pwd () {
137
- return new UnixStreamImpl <>(Stream .of (Paths .get ("" )));
137
+ return new UnixStreamImpl <>(Stream .of (Paths .get ("" ). toAbsolutePath () ));
138
138
}
139
139
140
140
Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ public void pwd() throws IOException {
18
18
19
19
List <Path > paths = stream .collect (Collectors .toList ());
20
20
21
- // TODO toAbsolutePath should not be be called by the client
22
- assertThat (paths .get (0 ).toAbsolutePath ().toString ()).endsWith ("unix-stream" );
21
+ assertThat (paths .get (0 ).toString ()).endsWith ("unix-stream" );
23
22
}
24
23
25
24
}
You can’t perform that action at this time.
0 commit comments