move working
This commit is contained in:
parent
7ea9e98789
commit
a66ed70532
4 changed files with 107 additions and 2 deletions
|
@ -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)
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue