pages s3
This commit is contained in:
parent
d5739d535f
commit
986bd1ac60
@ -90,7 +90,10 @@ export async function listUserObjects(userId: string, folder: string) {
|
|||||||
type: 'file',
|
type: 'file',
|
||||||
mime: item.Key?.endsWith('.md') ? 'text/markdown' : 'application/octet-stream',
|
mime: item.Key?.endsWith('.md') ? 'text/markdown' : 'application/octet-stream',
|
||||||
etag: item.ETag
|
etag: item.ETag
|
||||||
})) || [];
|
}))
|
||||||
|
// Filter out placeholder files and empty directory markers
|
||||||
|
.filter(item => !item.title.startsWith('.placeholder') && item.title !== '')
|
||||||
|
|| [];
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error listing objects:', error);
|
console.error('Error listing objects:', error);
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user