Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
  "Supersede": {
    "Copy": {
      "Enabled": true,
      "Path": "..\\Current"
    },
    "Supersede": {
      "Enabled": true,
      "Mode": "Move",
      "Path": "..\\Superseded"
    },
    "Rules": [
      {
        "Pattern": "(?<SheetNumber>.+) - (?<SheetName>.+) \\((?<Revision>.+)\\)",
        "Extensions": [ ".pdf" ],
        "Supersede": {
          "MatchFields": [             "SheetNumber"
          ]
        }
      },
      {
        "Pattern": "(?<SheetNumber>.+) \\((?<Revision>.+)\\)",
        "Extensions": [ ".dwg" ],
        "Supersede": {
          "MatchFields": [
            "SheetNumber"
          ]
        }
      }
    ]
  }
}

If we have a special project where we don’t want to keep superseded files (because they will remain in their initial location anyway), then we could use a folder specific .supersede-config file with the following configuration:

...