Skip to content

Commit cefeb16

Browse files
authored
Update README.md
1 parent 5ffa4d4 commit cefeb16

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ new_file.append(" It's a beautiful day.") # Adds onto file's existing content
6363

6464
new_file.replace("Hello World!", "Goodbye World!") # Finds and replaces file's content
6565

66-
new_file.move("folder_to_move_to") # Moves file to specified folder
66+
new_file.move_to("folder_to_move_to") # Moves file to specified folder
6767

6868
new_file.rename("folder_to_move_to/old_file.txt") # Rename the file
6969

@@ -72,6 +72,7 @@ new_file.remove() # Remove the file
7272

7373
new_file.copy("test_folder/fun_file.txt") # Copy file to parameter's location\
7474
new_file.copy_and_rename("test_folder/fun_file.txt") # Copy file to parameter's location
75+
new_file.copy_to("test_folder/fun_file.txt") # Copy file to parameter's location
7576

7677
new_file.read() # Returns file text content
7778

@@ -91,8 +92,6 @@ new_folder.create() # Create the file in the defined directory
9192

9293
new_folder.replace("not_needed_folder") # Replaces content of parameter's folder with object's content
9394

94-
new_folder.move("folder_to_move_to") # Moves file to specified folder
95-
9695
new_folder.rename("folder_to_move_to/old_file.txt") # Rename the file
9796

9897
new_folder.delete() # Delete the file\
@@ -102,6 +101,9 @@ new_folder.create_file("name_of_file.txt") # Create a file inside folder\
102101
new_folder.make_file("name_of_file.txt") # Make a file inside folder
103102

104103
new_folder.copy_to("test_folder/fun_file.txt") # Copy file to parameter's location\
104+
new_folder.copy_contents_to("test_folder") # Copy contents to parameter's location
105+
106+
new_folder.move_to("test_folder) # Moves to parameter's location without keeping original directory
105107

106108
new_folder.list() # Returns a list of all files in folder object
107109

@@ -120,10 +122,3 @@ Folder.clear_at("directory") # Clears specified directory
120122

121123

122124

123-
124-
125-
126-
127-
128-
129-

0 commit comments

Comments
 (0)