From cedb06a0483932410cdb4e6c71bbeebace9f4845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 14 Feb 2020 12:47:34 +0100 Subject: [PATCH] OS commands --- README.md | 2 +- index.html | 2 +- parse.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6ac46da..90742e7 100644 --- a/README.md +++ b/README.md @@ -1679,7 +1679,7 @@ shutil.copytree(from, to) # Copies the directory. ``` ```python -os.rename(from, to) # Renames the file or directory. +os.rename(from, to) # Renames or moves the file or directory. os.replace(from, to) # Same, but overwrites 'to' if it exists. ``` diff --git a/index.html b/index.html index b21b9e8..955d102 100644 --- a/index.html +++ b/index.html @@ -1525,7 +1525,7 @@ os.mkdir(<path>, mode=0o777) shutil.copy(from, to) # Copies the file. shutil.copytree(from, to) # Copies the directory. -
os.rename(from, to)                 # Renames the file or directory.
+
os.rename(from, to)                 # Renames or moves the file or directory.
 os.replace(from, to)                # Same, but overwrites 'to' if it exists.
 
os.remove(<path>)                   # Deletes the file.
diff --git a/parse.js b/parse.js
index 9f6d345..d2667af 100755
--- a/parse.js
+++ b/parse.js
@@ -34,7 +34,7 @@ const TOC =
   '
\n'; const OS_RENAME = - 'os.rename(from, to) # Renames the file or directory.\n' + + 'os.rename(from, to) # Renames or moves the file or directory.\n' + 'os.replace(from, to) # Same, but overwrites \'to\' if it exists.\n'; const SHUTIL_COPY =