time | Calls | line |
---|
| | 129 | function f = refinePath(f, fs)
|
0.001 | 289 | 130 | persistent singleDotPattern multipleFileSepPattern
|
| | 131 |
|
< 0.001 | 289 | 132 | if isempty(singleDotPattern)
|
| | 133 | singleDotPattern = [fs, '.', fs];
|
| | 134 | multipleFileSepPattern = [fs, fs];
|
| | 135 | end
|
| | 136 |
|
0.002 | 289 | 137 | f = strrep(f, '/', fs);
|
| | 138 |
|
0.002 | 289 | 139 | if any(contains(f, singleDotPattern))
|
| | 140 | f = replaceSingleDots(f, fs);
|
| | 141 | end
|
| | 142 |
|
0.001 | 289 | 143 | if any(contains(f, multipleFileSepPattern))
|
| | 144 | f = replaceMultipleFileSeps(f, fs);
|
| | 145 | end
|
| | 146 |
|
0.001 | 289 | 147 | if any(contains(f,':'))
|
| | 148 | f = fixIRI(f,fs);
|
| | 149 | end
|
| | 150 |
|
< 0.001 | 289 | 151 | end
|
Other subfunctions in this file are not included in this listing.