move working

This commit is contained in:
RafayAhmad7548 2025-08-14 15:45:41 +05:00
parent 7ea9e98789
commit a66ed70532
4 changed files with 107 additions and 2 deletions

View file

@ -20,13 +20,15 @@ class OperationButtons extends StatelessWidget {
children: [
IconButton(
onPressed: () {
final filePaths = dirEntries.map((dirEntry) => '${sftpProvider.path}${dirEntry.filename}').toList();
sftpProvider.setCopyOrMoveFiles(filePaths, false);
},
icon: Icon(Icons.drive_file_move)
),
IconButton(
onPressed: () {
final filePaths = dirEntries.map((dirEntry) => '${sftpProvider.path}${dirEntry.filename}').toList();
sftpProvider.setCopyOrMoveFiles(filePaths, true);
},
icon: Icon(Icons.copy)
),