File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ public function transfer(
141141 $ sourcePath
142142 );
143143
144+ $ sourceSize = $ view ->getFileInfo ($ sourcePath )->getSize ();
145+
144146 // transfer the files
145147 $ this ->transferFiles (
146148 $ sourceUid ,
@@ -149,6 +151,7 @@ public function transfer(
149151 $ view ,
150152 $ output
151153 );
154+ $ sizeDifference = $ sourceSize - $ view ->getFileInfo ($ finalTarget )->getSize ();
152155
153156 // transfer the incoming shares
154157 if ($ transferIncomingShares === true ) {
@@ -184,6 +187,8 @@ public function transfer(
184187 $ shares ,
185188 $ output
186189 );
190+
191+ $ output ->writeln ("Size difference after transfer: $ sizeDifference " );
187192 }
188193
189194 private function sanitizeFolderName (string $ name ): string {
You can’t perform that action at this time.
0 commit comments