(...segments)
| 21844 | return Utils.posix.dirname(path) |
| 21845 | } |
| 21846 | join(...segments) { |
| 21847 | const firstSegment = segments[0] |
| 21848 | if (isUrl(firstSegment)) { |
| 21849 | const baseUrl = firstSegment.endsWith("/") ? firstSegment : firstSegment + "/" |
| 21850 | return new URL(segments.slice(1).join("/"), baseUrl).toString() |
| 21851 | } |
| 21852 | return Utils.posix.join(...segments) |
| 21853 | } |
| 21854 | } |
| 21855 | class ScrollFile { |
| 21856 | constructor(codeAtStart, absoluteFilePath = "", fileSystem = new ScrollFileSystem({})) { |