Developer forum

Forum » Integration » Error in CsvProvider - WorkingDirectory

Error in CsvProvider - WorkingDirectory

Jesper Splidsboel
Reply

Hi support !

I spottet an error in CsvProvider 

The property WorkingDirectory gives me an in valid filepath

public override string WorkingDirectory
{
  get => this.workingDirectory + this.FilesFolderName;
  set => this.workingDirectory = value.Replace("\\", "/");
}

An example:

The last subfolder is named FilesFiles/ instead of Files/Files/ when I use this propery

If you take a look at XmlProvider:

public override string WorkingDirectory
{
  get => this._workingDirectory;
  set => this._workingDirectory = value.Replace("\\", "/");
}

AND

BaseProvider

public virtual string WorkingDirectory
{
  get => this.workingDirectory + this.FilesFolderName;
  set => this.workingDirectory = value.Replace("\\", "/");
}

Is this an error ? 

Why the difference between CsvProvider and XmlProvider ?

DW version: 9.13.8


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Jesper,

I have also noticed it and I believe this was introduced in a version around 9.12.

I would love to see a fix from DW.

Adrian

 
Morten Snedker Dynamicweb Employee
Morten Snedker
Reply

Hi folks,

This should be fixed in either most recent 9.13/9.14, or by getting most recent CSV Provider from nuget.

BR
snedker

 

You must be logged in to post in the forum