fix(storage): publish finalized SAF output once

This commit is contained in:
zarzet
2026-08-26 18:37:15 +07:00
parent f8bd1b5931
commit e149ee5358
4 changed files with 220 additions and 3 deletions
+16
View File
@@ -801,6 +801,22 @@ class PlatformBridge {
return result as String?;
}
static Future<Map<String, dynamic>> createSafFileIfAbsentFromPath({
required String treeUri,
required String relativeDir,
required String fileName,
required String mimeType,
required String srcPath,
}) {
return _invokeMap('safCreateIfAbsentFromPath', {
'tree_uri': treeUri,
'relative_dir': relativeDir,
'file_name': fileName,
'mime_type': mimeType,
'src_path': srcPath,
});
}
static Future<Map<String, dynamic>> createUniqueSafFileFromPath({
required String treeUri,
required String relativeDir,