mirror of
https://github.com/colanode/colanode.git
synced 2025-12-22 06:29:25 +01:00
10 lines
261 B
TypeScript
10 lines
261 B
TypeScript
|
|
import { FileAttributes } from '@colanode/core';
|
||
|
|
|
||
|
|
export const buildFilePath = (
|
||
|
|
workspaceId: string,
|
||
|
|
fileId: string,
|
||
|
|
fileAttributes: FileAttributes
|
||
|
|
) => {
|
||
|
|
return `files/${workspaceId}/${fileId}_${fileAttributes.version}${fileAttributes.extension}`;
|
||
|
|
};
|