@@ -63,7 +63,7 @@ new_file.append(" It's a beautiful day.") # Adds onto file's existing content
6363
6464new_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
6868new_file.rename("folder_to_move_to/old_file.txt") # Rename the file
6969
@@ -72,6 +72,7 @@ new_file.remove() # Remove the file
7272
7373new_file.copy("test_folder/fun_file.txt") # Copy file to parameter's location\
7474new_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
7677new_file.read() # Returns file text content
7778
@@ -91,8 +92,6 @@ new_folder.create() # Create the file in the defined directory
9192
9293new_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-
9695new_folder.rename("folder_to_move_to/old_file.txt") # Rename the file
9796
9897new_folder.delete() # Delete the file\
@@ -102,6 +101,9 @@ new_folder.create_file("name_of_file.txt") # Create a file inside folder\
102101new_folder.make_file("name_of_file.txt") # Make a file inside folder
103102
104103new_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
106108new_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