mirror of
https://github.com/colanode/colanode.git
synced 2025-12-22 06:29:25 +01:00
Merge files with nodes
This commit is contained in:
9
apps/server/src/lib/files.ts
Normal file
9
apps/server/src/lib/files.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { FileAttributes } from '@colanode/core';
|
||||
|
||||
export const buildFilePath = (
|
||||
workspaceId: string,
|
||||
fileId: string,
|
||||
fileAttributes: FileAttributes
|
||||
) => {
|
||||
return `files/${workspaceId}/${fileId}_${fileAttributes.version}${fileAttributes.extension}`;
|
||||
};
|
||||
Reference in New Issue
Block a user