public static async Task <bool> DownloadTo(this IFileRef self, RestRequest request, DirectoryEntry targetDir) { var fileName = CalculateFileName(self, await request.GetResultHeaders()); var targetFile = targetDir.GetChild(EnvironmentV2.SanatizeToFileName(fileName)); return(await self.DownloadTo(request, targetFile)); }
public FileEntry GetFile(string key) { return(folderForAllFiles.GetChild(EnvironmentV2.SanatizeToFileName(key))); }
/// <summary> Will create a new store instance </summary> /// <param name="dirName"> e.g. "MyPersistedElems1" </param> public static FileBasedKeyValueStore New(string dirName) { return(New(EnvironmentV2.SanatizeToFileName(EnvironmentV2.instance.systemInfo.appId), dirName)); }