move method

  1. @override
Future<void> move(
  1. FilePath path,
  2. XFile xfile
)
override

Implementation

@override
Future<void> move(FilePath path, XFile xfile) async {
  final sourceFile = File(xfile.path);
  final file = storeDir.file(path.pathJoin);
  await file.parent.create(recursive: true);
  try {
    await sourceFile.rename(file.path);
  } on FileSystemException catch (e) {
    _logger.d(e.message, e);
    await sourceFile.copy(file.path);
  }
}