Revert back to local temp folder
This commit is contained in:
@@ -24,20 +24,12 @@ namespace Torch.Managers
|
|||||||
|
|
||||||
public FilesystemManager(ITorchBase torchInstance) : base(torchInstance)
|
public FilesystemManager(ITorchBase torchInstance) : base(torchInstance)
|
||||||
{
|
{
|
||||||
var tmp = Path.Combine(Path.GetTempPath(), "Torch");
|
|
||||||
var torch = new FileInfo(typeof(FilesystemManager).Assembly.Location).Directory.FullName;
|
var torch = new FileInfo(typeof(FilesystemManager).Assembly.Location).Directory.FullName;
|
||||||
if (Path.GetPathRoot(tmp) == Path.GetPathRoot(torch))
|
TempDirectory = Directory.CreateDirectory(Path.Combine(torch, "tmp")).FullName;
|
||||||
{
|
TorchDirectory = torch;
|
||||||
TempDirectory = tmp;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
TempDirectory = Directory.CreateDirectory(Path.Combine(torch, "tmp")).FullName;
|
|
||||||
TorchDirectory = torch;
|
|
||||||
|
|
||||||
_log.Info($"Clearing tmp directory at {TempDirectory}");
|
_log.Debug($"Clearing tmp directory at {TempDirectory}");
|
||||||
ClearTemp();
|
ClearTemp();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ClearTemp()
|
private void ClearTemp()
|
||||||
|
Reference in New Issue
Block a user