C# Класс SIL.CoreImpl.DirectoryFinder

This class is used to find files and directories for an SIL app.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ResetStaticVars void

Открытые методы

Метод Описание
CommonAppDataFolder ( string appName ) : string

Gets the path for storing common application data that might be shared between multiple applications and multiple users on the same machine. On Windows this returns a subdirectory of Environment.SpecialFolder.CommonApplicationData (C:\ProgramData),on Linux /var/lib/fieldworks.

GetFolderPath ( Environment folder ) : string

Gets a special folder, very similar to Environment.GetFolderPath. The main difference is that this method works cross-platform and does some translations. For example CommonApplicationData (/usr/share) is not writeable on Linux, so we translate that to /var/lib/fieldworks instead.

UserAppDataFolder ( string appName ) : string

Gets the path for storing user-specific application data.

Приватные методы

Метод Описание
ResetStaticVars ( ) : void

Resets the static variables. Used for unit tests.

Описание методов

CommonAppDataFolder() публичный статический Метод

Gets the path for storing common application data that might be shared between multiple applications and multiple users on the same machine. On Windows this returns a subdirectory of Environment.SpecialFolder.CommonApplicationData (C:\ProgramData),on Linux /var/lib/fieldworks.
public static CommonAppDataFolder ( string appName ) : string
appName string Name of the application.
Результат string

GetFolderPath() публичный статический Метод

Gets a special folder, very similar to Environment.GetFolderPath. The main difference is that this method works cross-platform and does some translations. For example CommonApplicationData (/usr/share) is not writeable on Linux, so we translate that to /var/lib/fieldworks instead.
public static GetFolderPath ( Environment folder ) : string
folder System.Environment
Результат string

UserAppDataFolder() публичный статический Метод

Gets the path for storing user-specific application data.
public static UserAppDataFolder ( string appName ) : string
appName string Name of the application.
Результат string