mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
#33 new: upload file in sftp
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'package:toolbox/core/utils/misc.dart';
|
||||
|
||||
class PathWithPrefix {
|
||||
final String _prefixPath;
|
||||
String _path = '/';
|
||||
@@ -19,7 +21,7 @@ class PathWithPrefix {
|
||||
_path = '/';
|
||||
return;
|
||||
}
|
||||
_path = _path + (_path.endsWith('/') ? '' : '/') + newPath;
|
||||
_path = pathJoin(_path, newPath);
|
||||
}
|
||||
|
||||
bool undo() {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'package:toolbox/core/utils/misc.dart';
|
||||
|
||||
class AbsolutePath {
|
||||
String _path;
|
||||
String get path => _path;
|
||||
@@ -22,7 +24,7 @@ class AbsolutePath {
|
||||
_path = newPath;
|
||||
return;
|
||||
}
|
||||
_path = _path + (_path.endsWith('/') ? '' : '/') + newPath;
|
||||
_path = pathJoin(_path, newPath);
|
||||
}
|
||||
|
||||
bool undo() {
|
||||
|
||||
Reference in New Issue
Block a user