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