dotnet / dotnet/docfx

network share path fails to find files

Open
#4,264 5 comments 0 reactions 0 assignees View on GitHub
fundamental
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Operation System**: Windows

**DocFX Version Used**: Version 2.40.12

**Template used**: custom template

**Steps to Reproduce**:

1. Set a content file path to a network path

**Expected Behavior**:
Like the `dest` property,I would expect that the file path, even if glob based would work and find files.

**Actual Behavior**:
:D it doesn't find the files. `dest` seems to work no issue, but it is clear that it is rooting from the highlighted local path. I have tried it out with different configs, but they all error or just don't find anything.

![2019-03-28_1119](https://user-images.githubusercontent.com/43837/55182732-91ade300-514b-11e9-8316-3b2bd26286f0.png)

![2019-03-28_1127](https://user-images.githubusercontent.com/43837/55184310-0b939b80-514f-11e9-8fbe-f10d2ccbbf51.png)

**ISSUE AT**
Seems that the issue is from [here ](https://github.com/dotnet/docfx/blob/ffb02059c0d4fa983afce1d3876b02b77f017f47/src/Microsoft.DocAsCode.Build.Engine/FileCollection.cs#L46) As it is goign to force it down
```
var rootedBaseDir = Path.Combine(DefaultBaseDir, baseDir ?? string.Empty);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.