QOps 3.0.18

September 2026

Importing a data file into a folder

QOps-ImportFile takes a new optional -TargetPath, so a file can go into a folder inside the space instead of its top level:

QOps-ImportFile -Space Sales -Path .\data\*.csv -TargetPath Extracts/Daily

One destination for the whole command — every file -Path matches lands there, and folders that do not exist yet are created on the way. The local folder structure is not copied across: -Path chooses the files, -TargetPath chooses where they land. A file already in that folder is replaced, the same way it already is at the top level, so re-running an import stays the same command each time.

Without -TargetPath nothing changes: files go to the top level of the space exactly as before.

Give the folder on its own, relative to the space — Extracts/Daily, not the Space:DataFiles/... form from a load script. That prefix would otherwise be taken as a folder name, so the command refuses it and says which shape to use.