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