Class ResourceDefaultMarker
File-name convention that marks a shipped resource item as a system-owned
default: a file carries the token before its final extension
(AlTiBN.default.CoatingMaterial), a folder-shaped resource carries it
as a folder-name suffix (MachineTool/Table-B1.default/) with the
files inside left untouched.
public static class ResourceDefaultMarker
- Inheritance
-
ResourceDefaultMarker
- Inherited Members
Remarks
Marked means system territory — the resource seeder may overwrite the item on version updates and delete marked items that are no longer shipped. Unmarked items belong to the user and are never touched. The marker is a declaration, not an enforcement: user edits to a marked file survive until the next shipped-version change overwrites them.
Fields
Token
The marker token. Files embed it before the final extension; folders end with it.
public const string Token = ".default"
Field Value
Methods
IsMarkedFileName(string)
Whether fileName carries the marker
(contains .default.).
public static bool IsMarkedFileName(string fileName)
Parameters
fileNamestringFile name without directory.
Returns
IsMarkedFolderName(string)
Whether folderName carries the marker
(ends with .default).
public static bool IsMarkedFolderName(string folderName)
Parameters
folderNamestringFolder name without directory.
Returns
StripFileName(string)
Removes the marker from a marked file name
(X.default.mp → X.mp); an unmarked name passes through.
public static string StripFileName(string fileName)
Parameters
fileNamestringFile name without directory.
Returns
StripFolderName(string)
Removes the marker from a marked folder name
(CT-350.default → CT-350); an unmarked name passes through.
public static string StripFolderName(string folderName)
Parameters
folderNamestringFolder name without directory.