Skip to content

Commit 75bc54a

Browse files
tuckedsteveloughran
authored andcommitted
HADOOP-15136. Correct typos in filesystem.md (#2314)
Contributed by David Tucker Change-Id: I130e15d4f625a5b1b30967e6cfc1684079dd1f98
1 parent 2ce5846 commit 75bc54a

File tree

1 file changed

+3
-3
lines changed
  • hadoop-common-project/hadoop-common/src/site/markdown/filesystem

1 file changed

+3
-3
lines changed

hadoop-common-project/hadoop-common/src/site/markdown/filesystem/filesystem.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ Rename includes the calculation of the destination path.
11071107
If the destination exists and is a directory, the final destination
11081108
of the rename becomes the destination + the filename of the source path.
11091109

1110-
let dest = if (isDir(FS, src) and d != src) :
1110+
let dest = if (isDir(FS, d) and d != src) :
11111111
d + [filename(src)]
11121112
else :
11131113
d
@@ -1186,10 +1186,10 @@ If `src` is a directory then all its children will then exist under `dest`, whil
11861186
`src` and its descendants will no longer exist. The names of the paths under
11871187
`dest` will match those under `src`, as will the contents:
11881188

1189-
if isDir(FS, src) isDir(FS, dest) and src != dest :
1189+
if isDir(FS, src) and isDir(FS, dest) and src != dest :
11901190
FS' where:
11911191
not exists(FS', src)
1192-
and dest in FS'.Directories]
1192+
and dest in FS'.Directories
11931193
and forall c in descendants(FS, src) :
11941194
not exists(FS', c))
11951195
and forall c in descendants(FS, src) where isDir(FS, c):

0 commit comments

Comments
 (0)