File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,10 @@ def copy_file(source_file_path, destination_path)
120120 @file . copy ( source_file_path , destination_path )
121121 end
122122
123+ def move_file ( source_file_path , destination_path )
124+ @file . move ( source_file_path , destination_path )
125+ end
126+
123127 def phash_distance ( first , second )
124128 # Get hamming distance between two phash(image hash) to check
125129 # similarity between images
Original file line number Diff line number Diff line change @@ -148,6 +148,12 @@ def copy(source_file_path, destination_path)
148148 @req_obj . request ( 'post' , url , @req_obj . create_headers , payload )
149149 end
150150
151+ def move ( source_file_path , destination_path )
152+ url = "#{ constants . BASE_URL } /move"
153+ payload = { 'sourceFilePath' : source_file_path , 'destinationPath' : destination_path }
154+ @req_obj . request ( 'post' , url , @req_obj . create_headers , payload )
155+ end
156+
151157 def validate_upload_options ( options )
152158
153159 # Validates upload value, checks if params are valid,
You can’t perform that action at this time.
0 commit comments