Skip to content

Commit

Permalink
fix(file-io): 馃悰 general translation
Browse files Browse the repository at this point in the history
Refers: #9
  • Loading branch information
rcmoutinho committed Sep 13, 2019
1 parent 492aee3 commit 9b60c68
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions book/07-file-io/sections/02-files.asc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ include::{section-java-package}/files/Files_Checks.java[tag=code]
[source,console]
----
User home: /home/rinaldo
Path 1: /home/rinaldo/arquivo1.txt
Path 2: /home/rinaldo/arquivos
Path 1: /home/rinaldo/file1.txt
Path 2: /home/rinaldo/files
Path 1 exist? true
Path 2 exist? false
Path 1 does NOT exist? false
Expand Down Expand Up @@ -171,7 +171,7 @@ include::{section-java-package}/files/Files_CopyFromPath.java[tag=code]
----
User home: /home/rinaldo
Created Path: /home/rinaldo/copy860242436.txt
Created Path exist?: true
Created Path exist? true
----

. It is also possible to move a `Path`, either a directory or a file.
Expand Down
2 changes: 1 addition & 1 deletion book/07-file-io/sections/03-recursive-access.asc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

=== DirectoryStream and FileVisitor

.Objetivo
.Objective
--------------------------------------------------
Recursively access a directory tree by using the DirectoryStream and FileVisitor interfaces
--------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion book/07-file-io/sections/04-file-improvements.asc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The first 5 files and directories:
/home/rinaldo/files/subfolder1/subfolder12
----
+
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.
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.

. There is a version of the `walk` method for setting additional options and limiting the depth of access to subdirectories.
+
Expand Down
2 changes: 1 addition & 1 deletion src/org/j6toj8/fileio/files/Files_CopyFromPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void main(String[] args) {

Path createdPath = Paths.get(userHome, randomName);
System.out.println("Created Path: " + createdPath);
System.out.println("Created Path exist?: " + Files.exists(createdPath));
System.out.println("Created Path exist? " + Files.exists(createdPath));
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 9b60c68

Please sign in to comment.