Skip to content

Commit e2ebaba

Browse files
author
Niall Langley
committed
Fixed bug with full path duplicating the leaf node
1 parent 828910e commit e2ebaba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DataPipelineTools/DataLake/DataLakeService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ await CheckPathAsync(getItemsConfig.Directory, true) :
117117
.Select(p => new DataLakeItem
118118
{
119119
Name = Path.GetFileName(p.Name),
120-
Directory = p.IsDirectory.GetValueOrDefault(false) ?
121-
p.Name :
122-
Path.GetDirectoryName(p.Name).Replace(Path.DirectorySeparatorChar, '/'),
120+
Directory = Path.GetDirectoryName(p.Name).Replace(Path.DirectorySeparatorChar, '/'),
123121
Url = Url.Combine(dataLakeConfig.BaseUrl, p.Name),
124122
IsDirectory = p.IsDirectory.GetValueOrDefault(false),
125123
ContentLength = p.ContentLength.GetValueOrDefault(0),

0 commit comments

Comments
 (0)