Revert back to local temp folder
This commit is contained in:
@@ -24,21 +24,13 @@ namespace Torch.Managers
|
||||
|
||||
public FilesystemManager(ITorchBase torchInstance) : base(torchInstance)
|
||||
{
|
||||
var tmp = Path.Combine(Path.GetTempPath(), "Torch");
|
||||
var torch = new FileInfo(typeof(FilesystemManager).Assembly.Location).Directory.FullName;
|
||||
if (Path.GetPathRoot(tmp) == Path.GetPathRoot(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();
|
||||
}
|
||||
}
|
||||
|
||||
private void ClearTemp()
|
||||
{
|
||||
|
Reference in New Issue
Block a user