問題文
A server side script must build a file location from a directory name and a file name so that the separator is correct on every operating system. Which core module provides that?
選択肢
- The os module, which exposes the separator and is therefore the intended place for joining segments.
- The fs module, whose purpose is reading and writing files, so it also owns the helpers that assemble the location strings.
- The url module, whose resolve function joins address segments and applies the separator of the host platform.
- The path module, whose join function inserts the platform specific separator between the segments.