uploadLocalFiles method

Future<void> uploadLocalFiles()

Implementation

Future<void> uploadLocalFiles() async {
  if (_explorerState!.widget.uploadFiles == null) {
    return;
  }

  final entries = await _explorerState!.widget.uploadFiles!();
  for (final entry in entries) {
    await copy(entry, Entry(path: p.join(currentPath, entry.name)));
  }
  return refresh();
}