File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Pixel.Persistence.Services.Client/DataManagers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,10 @@ public async Task DownloadProjectDataFileByNameAsync(AutomationProject automatio
114
114
if ( IsOnlineMode )
115
115
{
116
116
var file = await this . filesClient . DownProjectDataFile ( automationProject . ProjectId , projectVersion . ToString ( ) , fileName ) ;
117
+ var projectDirectory = Path . Combine ( this . applicationFileSystem . GetAutomationProjectWorkingDirectory ( automationProject , projectVersion ) ) ;
117
118
using ( MemoryStream ms = new MemoryStream ( file . Bytes ) )
118
119
{
119
- using ( FileStream fs = new FileStream ( file . FilePath , FileMode . CreateNew ) )
120
+ using ( FileStream fs = new FileStream ( Path . Combine ( projectDirectory , file . FilePath ) , FileMode . Create ) )
120
121
{
121
122
ms . Seek ( 0 , SeekOrigin . Begin ) ;
122
123
ms . CopyTo ( fs ) ;
You can’t perform that action at this time.
0 commit comments