Support random access api in VFS #158
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Currently, the VFS has api such as
readfile
andwritefile
assumes that one would read and write files as a whole. However, that cannot work for really large files, it would be nice to support byte offset parameters which will then be translated into HTTP range request for remote file systems.E.g. we can add
position
andlength
similar to the fs module in nodejs: https://nodejs.org/api/fs.html#fs_fs_read_fd_buffer_offset_length_position_callbackI would assume that it's easy to implement that for readfile, how about write file, can we also support appending content to a specific position of a file?
The text was updated successfully, but these errors were encountered: