SnapshotFiles

Functions

Link copied to clipboard

Clean up all temporary scanner folders and ZIP files (for cleanup on app start or when old folders accumulate) This removes folders and ZIP files with the pattern: scannerTemp* and the legacy scannerTemp folder

Link copied to clipboard
fun cleanupOldTempFoldersAndZips(context: Context, keepRecentCount: Int = 3)

Clean up old temporary scanner folders AND their ZIP files, but keep the most recent N items. This allows concurrent workflows where a user can scan while a previous scan's ZIP is being uploaded.

Link copied to clipboard
fun deleteSubfolder(context: Context, folderName: String)
Link copied to clipboard
suspend fun exportSnapshot(points: List<PointCloudVertex>, metadata: PLYMetadata, folderPath: String, fileName: String): File
Link copied to clipboard
fun getFolder(context: Context): File
Link copied to clipboard
fun getSubfolderFile(context: Context, folderName: String, fileName: String): File
Link copied to clipboard
fun getSubfolderPath(context: Context, folderName: String): String
Link copied to clipboard
fun listSnapshotFiles(context: Context, folderName: String): List<File>
Link copied to clipboard
fun readZipData(zipFile: File): ByteArray
Link copied to clipboard
fun renameSubfolder(context: Context, oldName: String, newName: String)
Link copied to clipboard
suspend fun writeMetadata(context: Context, folderName: String, metadata: Map<String, String>)
Link copied to clipboard
suspend fun zipFolder(context: Context, folderName: String, deleteOriginal: Boolean = false): File