Skip to content

Commit 9b60c68

Browse files
committed
fix(file-io): 🐛 general translation
Refers: #9
1 parent 492aee3 commit 9b60c68

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

book/07-file-io/sections/02-files.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ include::{section-java-package}/files/Files_Checks.java[tag=code]
2222
[source,console]
2323
----
2424
User home: /home/rinaldo
25-
Path 1: /home/rinaldo/arquivo1.txt
26-
Path 2: /home/rinaldo/arquivos
25+
Path 1: /home/rinaldo/file1.txt
26+
Path 2: /home/rinaldo/files
2727
Path 1 exist? true
2828
Path 2 exist? false
2929
Path 1 does NOT exist? false
@@ -171,7 +171,7 @@ include::{section-java-package}/files/Files_CopyFromPath.java[tag=code]
171171
----
172172
User home: /home/rinaldo
173173
Created Path: /home/rinaldo/copy860242436.txt
174-
Created Path exist?: true
174+
Created Path exist? true
175175
----
176176

177177
. It is also possible to move a `Path`, either a directory or a file.

book/07-file-io/sections/03-recursive-access.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
=== DirectoryStream and FileVisitor
55

6-
.Objetivo
6+
.Objective
77
--------------------------------------------------
88
Recursively access a directory tree by using the DirectoryStream and FileVisitor interfaces
99
--------------------------------------------------

book/07-file-io/sections/04-file-improvements.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The first 5 files and directories:
4545
/home/rinaldo/files/subfolder1/subfolder12
4646
----
4747
+
48-
Note that the created instance is really a `Stream <Path>`, so that you can perform the operations available on any _Stream_, such as the `filter` method.
48+
Note that the created instance is really a `Stream<Path>`, so that you can perform the operations available on any _Stream_, such as the `filter` method.
4949

5050
. There is a version of the `walk` method for setting additional options and limiting the depth of access to subdirectories.
5151
+

src/org/j6toj8/fileio/files/Files_CopyFromPath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void main(String[] args) {
2424

2525
Path createdPath = Paths.get(userHome, randomName);
2626
System.out.println("Created Path: " + createdPath);
27-
System.out.println("Created Path exist?: " + Files.exists(createdPath));
27+
System.out.println("Created Path exist? " + Files.exists(createdPath));
2828
} catch (IOException e) {
2929
e.printStackTrace();
3030
}

0 commit comments

Comments
 (0)