개정판 77cdac33
벽산 수정 후 백업
Change-Id: I8e3eb48f615478a49efa0ab4014a8ef17d273d0a
KCOM/PageManager/PageStorage.cs | ||
---|---|---|
43 | 43 |
_TotalPages = totalPages; |
44 | 44 |
_TakeCount = takeCount; |
45 | 45 |
|
46 |
System.IO.Directory.CreateDirectory(LocalStorage); |
|
46 |
System.IO.DirectoryInfo info = System.IO.Directory.CreateDirectory(LocalStorage);
|
|
47 | 47 |
|
48 | 48 |
//backgroundWorker.RunWorkerAsync(new int[] { 1, 10 }); |
49 | 49 |
} |
... | ... | |
255 | 255 |
else |
256 | 256 |
{ |
257 | 257 |
|
258 |
if (!System.IO.Directory.Exists(LocalStorage)) |
|
259 |
{ |
|
260 |
System.IO.Directory.CreateDirectory(LocalStorage); |
|
261 |
System.Threading.Thread.Sleep(100); |
|
262 |
} |
|
263 |
|
|
258 | 264 |
System.Diagnostics.Debug.WriteLine("DownloadPageAsync down"); |
259 | 265 |
|
260 | 266 |
string downloadFilePath = System.IO.Path.Combine(LocalStorage, System.IO.Path.GetRandomFileName()); /// PageNo.ToString() + "." + _fileExt); |
... | ... | |
276 | 282 |
|
277 | 283 |
using (System.Net.WebClient client = new System.Net.WebClient()) |
278 | 284 |
{ |
285 |
client.CachePolicy = new System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.NoCacheNoStore); |
|
286 |
client.Headers.Add("Cache-Control", "no-cache"); |
|
279 | 287 |
client.UseDefaultCredentials = true; |
280 | 288 |
System.Net.IWebProxy webProxy = client.Proxy; |
281 | 289 |
|
내보내기 Unified diff