sharableFileCopy function
Implementation
Future<File> sharableFileCopy({
required String uuid,
required File file,
required String name,
}) async {
final base = await _cleanAtStartup;
final dir = base.dir(uuid);
await dir.create(recursive: true);
final copy = dir.file(name);
if (!(await copy.exists())) {
await file.copy(copy.path);
}
return copy;
}