PathUtil Class

Holds some path function. Mostly related to plugin directory.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static class PathUtil
Inheritance
Object    PathUtil

Remarks

Used on different places, so only system stuff which comes with .net are allowed to import.

Methods

CopyFileOrCreateEmpty Copy file, or if source doesn't exists create an empty file instead.
CrossSectionAliasFile(String)  
CrossSectionAliasFile(PathUtilBaseBy, String)  
CrossSectionsDir(String)  
CrossSectionsDir(PathUtilBaseBy, String) Get the directory name of the karamba3d-CrossSections-folder.
CrossSectionValuesFile  
DeleteDirWithFiles Deletes files (and empty directories) inside that directory.
IniFilePaths return paths to the .ini files in order of precedence. except that on from UserConfigPath(), because that needs special handling in case it doesn't exists.
KeyFilePath Path including the key file for checking the validity of the license.
LicenseAgreementPath path to the file with the license agreement text.
LicenseDir(IEnumerableString) directory where the license file resides.
LicenseDir(String) directory where the license file resides.
LicenseDir(PathUtilBaseBy, IEnumerableString) directory where the license file resides.
LicenseDir(PathUtilBaseBy, String) directory where the license file resides.
LicenseFallBackFilePath Path including the license file to the fallback-license.
LicenseFilePath path including the license file name.
LicenseProFilePath Path including the license file to the pro-license.
MachineIDFilePath path including the machine.id-file.
MaterialPropertiesFile(String)  
MaterialPropertiesFile(PathUtilBaseBy, String)  
MaterialsDir(String)  
MaterialsDir(PathUtilBaseBy, String) Get the directory name of the karamba3d-materials-folder.
NoSlashAtEnd Remove a final (back-)slash from a directory name.
OurBaseDir Use PluginPath() instead.
PluginPath(IEnumerableString) Return path to the folder where the Karamba folder resides.
PluginPath(String) Return path to the folder where the Karamba folder resides.
PluginPath(PathUtilBaseBy, IEnumerableString) Return path to the folder where the Karamba folder resides.
PluginPath(PathUtilBaseBy, String) Return path to the folder where the Karamba folder resides.
TempSubdir Creates a new empty temporary directory.
UserConfigDirectory Directory for writeable user config, so that our UI can be used to change.
UserConfigPath Directory for writeable user config, so that our UI can be used to change.

See Also