Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FileObject

import type { FileObject } from "https://esm.sh/@supabase/storage-js@2.99.0/dist/index.d.mts";

File object returned by the List V1 API (list() method) Note: Folder entries will have null values for most fields except name

Warning: Some fields may not be present in all API responses. Fields like bucket_id, owner, and buckets are not returned by list() operations.

interface FileObject {
bucket_id?: string;
buckets?: Bucket;
created_at: string | null;
id: string | null;
last_accessed_at: string | null;
metadata: FileMetadata | null;
name: string;
owner?: string;
updated_at: string | null;
}

§Properties

§
bucket_id?: string
[src]
§
buckets?: Bucket
[src]
§
created_at: string | null
[src]

Creation timestamp (null for folders)

§
id: string | null
[src]

Unique identifier for the file (null for folders)

§
last_accessed_at: string | null
[src]
§
metadata: FileMetadata | null
[src]

File metadata including size, mimetype, etc. (null for folders)

§
name: string
[src]

File or folder name (relative to the prefix) - always present

§
owner?: string
[src]
§
updated_at: string | null
[src]

Last update timestamp (null for folders)