Exemple #1
0
        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));
        }
Exemple #2
0
 public FileEntry GetFile(string key)
 {
     return(folderForAllFiles.GetChild(EnvironmentV2.SanatizeToFileName(key)));
 }
Exemple #3
0
 /// <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));
 }