saf + sqlite

This commit is contained in:
m
2026-09-09 22:31:20 +02:00
parent b671a222a5
commit d839bbdf70
12 changed files with 351 additions and 83 deletions
+7 -31
View File
@@ -1,35 +1,11 @@
import { Directory, File, Paths } from 'expo-file-system';
export type Folder = {
uri: string;
name: string;
isDirectory: true;
exists?: boolean;
};
export type FileEntry = {
uri: string;
name: string;
isDirectory: false;
extension: string;
exists: boolean;
size: number;
type: string;
lastModified: number | null;
};
export type DirectoryEntry = Folder | FileEntry;
export type FolderInfo = {
uri: string;
name: string;
exists: boolean;
};
type PickDirectoryOptions = {
recursive?: boolean;
includeRoot?: boolean;
};
import type {
DirectoryEntry,
FileEntry,
Folder,
FolderInfo,
PickDirectoryOptions,
} from './safDirectory.types';
export async function pickDirectory(initialUri?: string): Promise<Folder | null> {
try {