@oaklean/profiler-core
Version:
Part of the @oaklean suite. It provides all basic functions to work with the `.oak` file format. It allows parsing the `.oak` file format as well as tools for analyzing the measurement values. It also provides all necessary capabilities required for prec
12 lines (11 loc) • 764 B
TypeScript
import { UnifiedPath } from '../system/UnifiedPath';
import { PermissionTypes } from '../types';
export declare class PermissionHelper {
static changeFileOwnershipBackToUser(path: string): void;
static changeFilePermission(path: string, permissions: PermissionTypes): void;
static mkdirRecursivelyWithUserPermission(path: UnifiedPath): void;
static writeFileWithStorageFunctionWithUserPermissionAsync(path: UnifiedPath, storeFunction: () => Promise<unknown>): Promise<void>;
static writeFileWithStorageFunctionWithUserPermission(path: UnifiedPath, storeFunction: () => void): void;
static writeFileWithUserPermission(path: UnifiedPath, data: string | NodeJS.ArrayBufferView): void;
static checkWindowsAdminRights(): Promise<boolean>;
}