Skip to content

Commit

Permalink
make local op dir not deletabe in manage op directories
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Oct 30, 2024
1 parent db78ea5 commit c0496dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/projects_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ class ProjectsUtil extends SharedProjectsUtil

isFixedPositionOpDir(dir)
{
const projectDir = settings.getCurrentProjectDir();
if (projectDir) if (dir === path.join(projectDir, "ops/")) return true;
if (dir === "./ops") return true;
if (dir === cables.getOsOpsDir()) return true;
if (cables.isPackaged()) return false;
if (dir === cables.getExtensionOpsPath()) return true;
Expand Down

0 comments on commit c0496dd

Please sign in to comment.