Data#
Overview#
Filesystem access endpoints scoped to the configured dataDir. Used by MappingModeler and the CSV picker to browse, read, write, and delete files in a sandboxed area of the server.
All sensitive operations sanitize paths to prevent directory traversal, and DELETE on a file checks readwrite access on the optional source parameter.
Modules#
1. Listing (files.js)#
Lists file names inside dataDir/<dir> (dataController.getFilesList).
2. File CRUD (file.js)#
GETreads the parsed content ofdataDir/<dir>/<fileName>.POSToverwrites/creates the file with the body’sdatapayload.DELETEremoves the file, with optionalreadwritecheck against a source.
3. CSV preview (csv.js)#
Streams the first N lines of a CSV file as JSON rows for quick preview in the UI.
4. Directory creation (dir.js)#
Creates a new sub-directory under dataDir.
Files in this directory#
csv.jsdir.jsfile.jsfiles.js