mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Update fs for workspaces
This commit is contained in:
@@ -21,9 +21,3 @@ func GetWorkspacePath(workspace *models.Workspace) string {
|
||||
func GetFilePath(workspace *models.Workspace, relativeFilePath string) string {
|
||||
return filepath.Join(GetWorkspacePath(workspace), relativeFilePath)
|
||||
}
|
||||
|
||||
// EnsureWorkspaceDirectory creates the workspace directory if it doesn't exist
|
||||
func EnsureWorkspaceDirectory(workspace *models.Workspace) error {
|
||||
dir := GetWorkspacePath(workspace)
|
||||
return os.MkdirAll(dir, 0755)
|
||||
}
|
||||
Reference in New Issue
Block a user