move working
This commit is contained in:
parent
7ea9e98789
commit
a66ed70532
4 changed files with 107 additions and 2 deletions
|
@ -11,6 +11,9 @@ class SftpProvider extends ChangeNotifier {
|
|||
|
||||
double? _uploadProgress;
|
||||
double? _downloadProgress;
|
||||
|
||||
List<String>? _toBeMovedOrCopied;
|
||||
bool _isCopy = false;
|
||||
|
||||
SftpProvider(this._sftpWorker) {
|
||||
listDir();
|
||||
|
@ -24,6 +27,9 @@ class SftpProvider extends ChangeNotifier {
|
|||
|
||||
double? get uploadProgress => _uploadProgress;
|
||||
double? get downloadProgress => _downloadProgress;
|
||||
|
||||
List<String>? get toBeMovedOrCopied => _toBeMovedOrCopied;
|
||||
bool get isCopy => _isCopy;
|
||||
|
||||
Future<void> listDir() async {
|
||||
_isLoading = true;
|
||||
|
@ -54,4 +60,10 @@ class SftpProvider extends ChangeNotifier {
|
|||
notifyListeners();
|
||||
}
|
||||
|
||||
void setCopyOrMoveFiles(List<String>? files, bool isCopy) {
|
||||
_toBeMovedOrCopied = files;
|
||||
_isCopy = isCopy;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue