This commit is contained in:
alma 2025-05-04 16:05:27 +02:00
parent d5739d535f
commit 986bd1ac60

View File

@ -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;