Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Index ¶
- func GetCurrentProcessWorkingDir() (string, error)
- func GetDataFolder(name string, version string) string
- func TryClearExtensionScriptsDirectoriesAndSettingsFilesExceptMostRecent(scriptsDirectory string, runtimeSettingsDirectory string, extensionName string, ...) error
- func TryClearRegexMatchingFilesExcept(directory string, regexFileNamePattern string, exceptFileName string, ...) error
- func TryDeleteDirectoriesExcept(parentDirectory string, exceptDirectoryName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentProcessWorkingDir ¶
GetCurrentProcessWorkingDir returns the absolute path of the running process.
func GetDataFolder ¶
func TryClearExtensionScriptsDirectoriesAndSettingsFilesExceptMostRecent ¶
func TryClearExtensionScriptsDirectoriesAndSettingsFilesExceptMostRecent(scriptsDirectory string, runtimeSettingsDirectory string, extensionName string, mostRecentSequenceNumberFinished uint64, runtimeSettingsRegexFormatWithAnyExtName string, runtimeSettingsLastSeqNumFormatWithAnyExtName string) error
Try empty runtime settings files for an extension except last, delete scripts except last. runtimeSettingsRegexFormatWithAnyExtName - regex identifying all settings files- example. "\\d+.settings", "RunCommandName.\\d+.settings" runtimeSettingsLastSeqNumFormatWithAnyExtName - example. "%s.settings", "RunCommandName.%s.settings"
func TryClearRegexMatchingFilesExcept ¶
func TryClearRegexMatchingFilesExcept(directory string, regexFileNamePattern string, exceptFileName string, deleteFiles bool) error
Try clear files whose file names match with a regular expression except the filename passed in exceptFileName argument. If deleteFiles is true, files will be deleted, else they will be emptied without deleting.
func TryDeleteDirectoriesExcept ¶
Try delete all directories in parentDirectory excepth directory by name 'exceptDirectoryName'
Types ¶
This section is empty.