{"id":6042,"date":"2026-08-27T10:23:20","date_gmt":"2026-08-27T15:23:20","guid":{"rendered":"https:\/\/querystreams.com\/?post_type=docs&#038;p=6042"},"modified":"2026-11-09T09:48:54","modified_gmt":"2026-11-09T15:48:54","password":"","slug":"index-a-file-system-and-query-it-with-sql","status":"publish","type":"docs","link":"https:\/\/querystreams.com\/de\/docs\/index-a-file-system-and-query-it-with-sql\/","title":{"rendered":"Indizieren Sie ein Dateisystem und f\u00fchren Sie Abfragen mit SQL durch."},"content":{"rendered":"\n<article class=\"qs-d qs-d--fileset qs-d--v5\" data-src=\"fileset\" data-dest=\"sql\" style=\"--qs-src:14 165 233;--qs-src-deep:245 158 11;--qs-src-ink:245 158 11;--qs-src-tint:#7acef3;--qs-dst:19 50 59;--qs-dst-tint:#8ed6bd\">\n<section class=\"qs-v5-hero qs-v5-hero--doc\" data-qs-art=\"hero-fileset\" aria-label=\"Introduction\"><div class=\"qs-v5-hero__words\"><div class=\"qs-v5-lockup\"><span class=\"qs-v5-lockup__item\"><span class=\"qs-v5-lockup__mark\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/09\/icon-fileset-128.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/span><span class=\"qs-v5-lockup__name\">File system<\/span><\/span><i class=\"fa-solid fa-arrow-right qs-v5-lockup__arrow\" aria-hidden=\"true\"><\/i><span class=\"qs-v5-lockup__item qs-v5-lockup__item--qs\"><span class=\"qs-v5-lockup__mark\"><a class=\"lnk\" href=\"https:\/\/my.querystreams.com\" rel=\"noopener\" title=\"Start free on the Free plan\" aria-label=\"Start free on the Free plan\" data-qs-cta=\"signup\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/qs-logo-mark-120.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/a><span class=\"qs-v5-lockup__pill\">Free plan<\/span><\/span><span class=\"qs-v5-lockup__name\">Query Streams<\/span><\/span><i class=\"fa-solid fa-arrow-right qs-v5-lockup__arrow\" aria-hidden=\"true\"><\/i><span class=\"qs-v5-lockup__item\"><span class=\"qs-v5-lockup__mark\"><a class=\"lnk\" href=\"https:\/\/querystreams.com\/features\/\" title=\"Query Streams features\" aria-label=\"Query Streams features\" data-qs-cta=\"feature\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/tile-querystreams-data-connectors-t2-180.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/a><\/span><span class=\"qs-v5-lockup__name\">SQL tables<\/span><\/span><\/div><p class=\"qs-v5-hero__eyebrow\">File system &rarr; SQL tables &middot; with Query Streams<\/p><p class=\"qs-v5-hero__lede\">With Query Streams, the files and folders on your computer or file share become read-only SQL tables of names, sizes, extensions and dates: the Agent indexes them where they sit, keeps the index current in an encrypted local cache, and nothing is uploaded or changed. About fifteen minutes the first time, and the Free plan covers it.<\/p><a class=\"qs-v5-hero__btn\" href=\"https:\/\/my.querystreams.com\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"signup\">Start free<\/a><\/div><figure class=\"qs-v5-hero__art\"><picture><source media=\"(max-width: 640px)\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"><img fetchpriority=\"high\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-720.webp\" srcset=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-480.webp 480w, https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-720.webp 720w, https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-1080.webp 1080w, https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-1440.webp 1440w\" sizes=\"(max-width: 900px) min(420px, calc(100vw - 97px)), min(720px, calc((100vw - 184px - min(5vw, 72px)) * 7 \/ 12))\" width=\"1440\" height=\"960\" alt=\"Isometric stack of three file sheets linked by one line to a single table tile\" loading=\"eager\" fetchpriority=\"high\" decoding=\"async\"><\/picture><\/figure><\/section>\n<div class=\"qs-d-support\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>Stuck at any point? Just ask us.<\/strong> Open <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">Support<\/a> in Query Streams (top-right menu &rarr; Support) and send us a message. Real people read it, and &ldquo;I don&rsquo;t know what this screen is asking for&rdquo; is a perfectly good question.<\/div><\/div>\n\n<h2 id=\"result\">What you&rsquo;ll end up with<\/h2>\n<p class=\"qs-d-lead\"><img decoding=\"async\" class=\"qs-d-lead__icon\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/09\/icon-fileset-128.png\" alt=\"File System icon\" width=\"28\" height=\"28\"><span>You end up with a live inventory of every file under the folders you choose, as SQL tables. <code>fileset.files<\/code> lists each file that is there now with its path, size and dates, <code>fileset.files_events<\/code> records every file that appeared, changed or vanished, and <code>fileset.directories<\/code> shows how big each folder is. File contents are never read, so this is a file indexer, not a file reader. The Agent builds the tables on the computer where it runs, and your files stay on your network.<\/span><\/p>\n<div class=\"qs-d-grid\" style=\"grid-template-columns:minmax(200px,1fr) minmax(0,2fr)\" role=\"img\" data-qs-seen=\"result\" aria-label=\"A folder with three files on the left and, on the right, the SQL table they become, with a _source_file column naming the file each row came from\"><div class=\"qs-d-card\" data-zone=\"src\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-pill src\"><i class=\"fa-solid fa-folder-open\"><\/i> Your folder<\/span><h3>anything the Agent can open<\/h3><table class=\"qs-d-table\"><tbody><tr><td><i class=\"fa-regular fa-file\"><\/i> Q3 report.pdf<\/td><\/tr><tr><td><i class=\"fa-regular fa-file\"><\/i> budget_2026.xlsx<\/td><\/tr><tr><td><i class=\"fa-regular fa-file\"><\/i> site-photo.jpg<\/td><\/tr><\/tbody><\/table><\/div><div class=\"qs-d-card\" data-zone=\"dst\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-pill dst\"><i class=\"fa-solid fa-table\"><\/i> fileset.files<\/span><h3>one row per file<\/h3><div class=\"qs-d-table__wrap\"><table class=\"qs-d-table\"><thead><tr><th>_source_file<\/th><th>relative_path<\/th><th>size_bytes<\/th><\/tr><\/thead><tbody><tr><td>Q3 report.pdf<\/td><td>&hellip;<\/td><td>&hellip;<\/td><\/tr><tr><td>budget_2026.xlsx<\/td><td>&hellip;<\/td><td>&hellip;<\/td><\/tr><tr><td>site-photo.jpg<\/td><td>&hellip;<\/td><td>&hellip;<\/td><\/tr><\/tbody><\/table><\/div><\/div><\/div>\n<p>File System has no data table, because it reads no file contents. Everything sits in one DuckDB schema called <code>fileset<\/code>, cached on the Agent computer and refreshed on every scan. You get five tables and one view.<\/p><table class=\"qs-d-table\"><thead><tr><th>Table<\/th><th>What it holds<\/th><\/tr><\/thead><tbody><tr><td><code>fileset.files<\/code><\/td><td>A view of the files that are there now: <code>relative_path<\/code>, <code>name<\/code>, <code>extension<\/code>, <code>size_bytes<\/code>, <code>created_utc<\/code>, <code>modified_utc<\/code>, <code>hash<\/code> and <code>owner<\/code> (Windows only). Query this one.<\/td><\/tr><tr><td><code>fileset.files_current<\/code><\/td><td>The full ledger behind the view, including vanished files, with <code>state<\/code>, <code>first_seen_utc<\/code>, <code>last_seen_utc<\/code> and <code>change_count<\/code>. Never join it to <code>files<\/code>.<\/td><\/tr><tr><td><code>fileset.files_events<\/code><\/td><td>The change history: <code>event_type<\/code> (appeared, modified, vanished, drift, refused), <code>event_at<\/code>, <code>prev_size_bytes<\/code>, <code>detected_by<\/code> and <code>detail<\/code>.<\/td><\/tr><tr><td><code>fileset.directories<\/code><\/td><td>One row per folder: <code>direct_file_count<\/code>, <code>subtree_bytes<\/code>, oldest and newest file, and a <code>skip_reason<\/code> such as <code>max_depth<\/code>.<\/td><\/tr><tr><td><code>fileset.directory_snapshots<\/code><\/td><td>At most one size snapshot per folder per day, for growth over time.<\/td><\/tr><tr><td><code>fileset.volumes<\/code><\/td><td><code>capacity_bytes<\/code> and <code>free_bytes<\/code> for each drive.<\/td><\/tr><\/tbody><\/table>\n<figure class=\"qs-d-figure\" data-qs-seen=\"flow\"><svg viewBox=\"0 0 900 210\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"WHERE THE FILES LIVE: the files and folders on your computer or file share and the Query Streams Agent, which scans the folder and keeps the tables in a local cache; arrows to Query Streams in the middle; WHERE YOU USE IT: Excel, Google Sheets, Nova, Claude and the REST API\"><defs><marker id=\"qsArrowH\" viewBox=\"0 0 10 10\" refX=\"9\" refY=\"5\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto-start-reverse\"><path d=\"M0,0 L10,5 L0,10 z\" fill=\"#6589A6\"\/><\/marker><\/defs><rect x=\"14\" y=\"14\" width=\"380\" height=\"166\" rx=\"16\" fill=\"#ffffff\" stroke=\"#0ea5e9\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><text x=\"32\" y=\"38\" font-family=\"Poppins, sans-serif\" font-size=\"11\" font-weight=\"600\" fill=\"#f59e0b\" letter-spacing=\"1.5\">WHERE THE FILES LIVE<\/text><text x=\"32\" y=\"54\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#7D8688\">a computer or file share the Agent can open<\/text><rect x=\"36\" y=\"72\" width=\"160\" height=\"78\" rx=\"12\" fill=\"#0ea5e9\" fill-opacity=\".12\" stroke=\"#0ea5e9\" stroke-width=\"1.5\"\/><text x=\"116\" y=\"99\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#f59e0b\">Your folder<\/text><text x=\"116\" y=\"116\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#f59e0b\">of files<\/text><text x=\"116\" y=\"137\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#0ea5e9\">files stay where they are<\/text><rect x=\"212\" y=\"72\" width=\"160\" height=\"78\" rx=\"12\" fill=\"#13323B\"\/><text x=\"292\" y=\"96\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#ffffff\">Query Streams Agent<\/text><text x=\"292\" y=\"114\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11.5\" fill=\"#a9dfcb\">scans the folder, builds tables<\/text><text x=\"292\" y=\"130\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11.5\" fill=\"#a9dfcb\">in a local cache, runs the SQL<\/text><text x=\"292\" y=\"144\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10.5\" fill=\"#a9dfcb\">SELECT only, enforced here<\/text><line x1=\"198\" y1=\"111\" x2=\"208\" y2=\"111\" stroke=\"#6589A6\" stroke-width=\"2.5\" marker-end=\"url(#qsArrowH)\"\/><line x1=\"394\" y1=\"111\" x2=\"428\" y2=\"111\" stroke=\"#6589A6\" stroke-width=\"2.5\" stroke-dasharray=\"4 4\" marker-start=\"url(#qsArrowH)\" marker-end=\"url(#qsArrowH)\"\/><rect x=\"432\" y=\"80\" width=\"100\" height=\"62\" rx=\"31\" fill=\"#66C0A3\"\/><text x=\"482\" y=\"106\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"12\" font-weight=\"700\" fill=\"#0b2027\">Query Streams<\/text><text x=\"482\" y=\"121\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10.5\" fill=\"#0b2027\">one outbound link<\/text><line x1=\"534\" y1=\"111\" x2=\"568\" y2=\"111\" stroke=\"#6589A6\" stroke-width=\"2.5\" stroke-dasharray=\"4 4\" marker-start=\"url(#qsArrowH)\" marker-end=\"url(#qsArrowH)\"\/><text x=\"482\" y=\"166\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#6589A6\">checks who may see what &middot; logs every query<\/text><rect x=\"572\" y=\"14\" width=\"314\" height=\"166\" rx=\"16\" fill=\"#ffffff\" stroke=\"#66C0A3\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><text x=\"590\" y=\"38\" font-family=\"Poppins, sans-serif\" font-size=\"11\" font-weight=\"600\" fill=\"#13323B\" letter-spacing=\"1.5\">WHERE YOU USE IT<\/text><text x=\"590\" y=\"54\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#7D8688\">any computer, any browser<\/text><rect x=\"594\" y=\"72\" width=\"270\" height=\"78\" rx=\"12\" fill=\"#66C0A3\" fill-opacity=\".12\" stroke=\"#66C0A3\" stroke-opacity=\".6\"\/><text x=\"729\" y=\"100\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#13323B\">Excel &middot; Google Sheets &middot; Nova<\/text><text x=\"729\" y=\"122\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#13323B\">Claude &middot; REST API &middot; Automations<\/text><text x=\"729\" y=\"140\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11.5\" fill=\"#13323B\">see the rows, never the files<\/text><\/svg><figcaption>The Agent reads the folder on its own computer, keeps the rows in an encrypted local cache there and runs every query against that cache. Only the rows a query returns travel out, over one outbound connection. No port to open, no VPN, no upload.<\/figcaption><\/figure>\n<p>Where it earns its keep:<\/p>\n<ul class=\"qs-d-related\">\n  <li>Storage clean-up: rank a file share by folder and file type, then watch directory_snapshots to see which folders keep growing.<\/li>\n  <li>Audit: list what was added, changed or deleted on a shared drive last week, with the Windows owner of each file.<\/li>\n  <li>Retention: find files nobody has modified in years, grouped by folder, before archiving them.<\/li>\n<\/ul>\n\n<h2 id=\"need\">What you&rsquo;ll need<\/h2>\n<div class=\"qs-d-grid\" data-qs-seen=\"need\"><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-user-plus\"><\/i><\/span><h3>A Query Streams account<\/h3><p>Folder connectors are on every plan, including Free. Free is a plan you keep, not a trial that expires. There is no cap on how many files a folder may hold.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"src\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/09\/icon-fileset-128.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><\/span><h3>The Agent, 2.6.0 or later<\/h3><p>Installed on a computer that can open the folder: the file server itself, an office computer, or the machine the files land on. An older Agent shows the folder cards greyed out with an <strong>Agent 2.6.0+<\/strong> badge. Windows, Mac or Linux.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"slate\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-route\"><\/i><\/span><h3>The folder&rsquo;s path, as the Agent sees it<\/h3><p>A local path, or a network share written as <code>\\\\server\\share\\folder<\/code>. The Agent runs as a service, so it cannot see drives you mapped at your login (Z: and friends). On Windows it can sign in to a share with a login you store; on Linux or a Mac, mount the share first (Linux under <code>\/mnt<\/code> or <code>\/media<\/code>, a Mac under <code>\/Volumes<\/code>).<\/p><\/div><\/div><div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>Where does the work happen?<\/strong> On the computer that runs the Agent. It scans the folder, copies the rows into an encrypted local cache there (one schema, named <code>fileset<\/code>) and runs every query against that cache. Your files are read, never modified, moved or uploaded.<\/p><\/div>\n\n<h2 id=\"steps\">Set it up in five steps<\/h2>\n<ol class=\"qs-d-steps\" data-qs-seen=\"steps\">\n<li class=\"qs-d-step\" data-qs-step=\"1\" id=\"step-1\"><h3>Install the Agent on a computer that can open the folder <span class=\"qs-d-os\" role=\"img\" aria-label=\"Windows, Mac and Linux\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/03\/icons8-windows-48.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/03\/icons8-apple-inc-48.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/03\/icons8-linux-48.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><\/span><\/h3><p>Sign in, open <a href=\"https:\/\/my.querystreams.com\/download\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"download\">Download<\/a>, and install the Agent for your system on the computer that can open the files and folders on your computer or file share: the file server, or any always-on computer that can reach the share. It takes a minute and starts on its own from then on. You need version 2.6.0 or later; the Download page always has the current one.<\/p><div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-network-wired\"><\/i><p><strong>Why a small program instead of a driver?<\/strong> The Agent is one install for Windows, Mac or Linux (about 85 MB on Windows, a little over 100 MB on Mac and Linux). It opens one outbound encrypted connection to Query Streams and that is the only network path it needs: no inbound port to open, no VPN. It reads the folder where it sits, so the files stay put and only the rows a query returns travel across the internet to the add-in, browser or AI client on your side.<\/p><\/div><p>The Download page shows <strong>Your Access Key<\/strong>. Paste it into the Agent when it asks, and wait for the badge to read <strong>Connected to Query Streams<\/strong>. That is the only thing you do on the Agent&rsquo;s computer; everything else happens in your browser.<\/p><p>Full walkthroughs if you want them: <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-windows\/\" data-qs-cta=\"install_doc\">Windows<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-macos\/\" data-qs-cta=\"install_doc\">Mac<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-linux\/\" data-qs-cta=\"install_doc\">Linux<\/a>.<\/p><\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"step-2\">\n      <h3>Point it at the files and folders on your computer or file share<\/h3>\n<p>Back in your browser open <a href=\"https:\/\/my.querystreams.com\/data-agents\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"data_agents\"><strong>Data &rarr; Data Agents<\/strong><\/a>, find the Agent you just installed and click its <strong>Add connector<\/strong> button. Open the <strong>Files &amp; Folders<\/strong> pill and pick the <strong>File System<\/strong> card. Not sure which card fits? Pick <strong>Files in a folder<\/strong> instead: the Agent samples the folder, names what it holds on a &ldquo;What we found&rdquo; page and opens the right card for you, pre-filled.<\/p><p>The wizard runs <strong>Folders &rarr; Check &rarr; Settings &rarr; Realm &rarr; Review<\/strong>. On <strong>Folders<\/strong>:<\/p><dl class=\"qs-d-kv\" data-qs-seen=\"setup\"><dt>Root folders<\/dt><dd>One path per line, as the Agent&rsquo;s computer sees it. Each folder shows a status (reachable, denied, missing, unreachable, credentials invalid or not mounted) as soon as you add it. On a Windows Agent a share that needs a login gets one from the folder&rsquo;s <strong>Credential<\/strong> column, stored once per server; on Linux or a Mac, mount the share first.<\/dd><dt>Scan subfolders, Max depth<\/dt><dd>On, and 8 levels, by default.<\/dd><dt>Include patterns, Exclude patterns<\/dt><dd>Which files count. The include pattern starts with the right glob for this card. One connector reads one file type: a folder with CSV <em>and<\/em> Parquet files is two connectors on the same folder, one per type.<\/dd><dt>Follow symlinks and junctions<\/dt><dd>Off by default. The Agent does not follow shortcuts or cloud placeholders unless you turn this on.<\/dd><\/dl>\n      <div class=\"qs-d-note\" data-zone=\"src\"><i class=\"fa-solid fa-folder-open\"><\/i><div><p>Start from the <strong>Add connector<\/strong> button of an Agent that can open the folder. Open <strong>Files &amp; Folders<\/strong> and click the <strong>File System<\/strong> card.<\/p><ul><li><strong>Root folders<\/strong>: one folder per line, as paths on the Agent computer. Type a network share as <code>\\\\server\\share\\folder<\/code>, not as a mapped drive letter like Z:, because the Agent runs as a service and cannot see drives mapped at your login. On a Windows Agent, if the share lets in only named people, click <strong>Service identity<\/strong> in the folder&rsquo;s <strong>Credential<\/strong> column and store a login for that server. On Linux or a Mac, mount the share first. <a href=\"#network-share\">Reaching a file on a network share<\/a> has the steps for each system.<\/li><li><strong>Scan subfolders<\/strong> is on and <strong>Max depth<\/strong> is 8.<\/li><li><strong>Include patterns<\/strong> starts as <code>**\/*.csv<\/code>. Add a pattern for every file type you want listed, and use <strong>Exclude patterns<\/strong> for anything to leave out.<\/li><li>There is no <strong>Table name<\/strong> field. File System builds only the inventory tables.<\/li><\/ul><\/div><\/div>\n    <\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"step-3\">\n      <h3>Check what it will build<\/h3>\n<p>On <strong>Check<\/strong> the Agent reads a sample of up to 64 files and shows what it will build. Nothing is created yet. The button reads <strong>Test connection<\/strong> until a verdict exists, then <strong>Next<\/strong>; <strong>Test again<\/strong> re-runs the sample after you change something. You will see one of four headlines:<\/p><dl class=\"qs-d-kv\" data-qs-seen=\"check\"><dt><span class=\"qs-d-pill\" data-zone=\"mint\">Ready to create<\/span><\/dt><dd>Every sampled file fits. The chips under it say how many folders were reachable, how many files and rows, and which tables will exist.<\/dd><dt><span class=\"qs-d-pill\" data-zone=\"slate\">Ready, with notes<\/span><\/dt><dd>Some files will be set aside, or the layout sniff refused. An amber banner says exactly which: &ldquo;{n} of {m} file(s) will be set aside&rdquo; with a <strong>Show which files and why<\/strong> list, and &ldquo;You can create it anyway &mdash; the connector will keep re-checking and reports the reason on its Manifest tab.&rdquo;<\/dd><dt><span class=\"qs-d-pill\" data-zone=\"rose\">Needs attention<\/span><\/dt><dd>The Agent is offline or a folder is missing. Fix that before going on; with the Agent offline the page says so and still lets you continue.<\/dd><\/dl><p>A refusal or set-aside files never block you: click <strong>Next<\/strong>, finish the wizard and fix the odd files later. Only an offline Agent or a missing folder stops the wizard.<\/p>\n      <div class=\"qs-d-note\" data-zone=\"src\"><i class=\"fa-solid fa-magnifying-glass\"><\/i><div><p>On <strong>Check<\/strong>, the Agent reads a sample and shows what it will build. Nothing is created yet. For File System the verdict is about reach, not layout: a green <strong>Ready to create<\/strong> headline with chips for &ldquo;{n} of {m} folders reachable&rdquo;, the file count and the total size. A red <strong>Needs attention<\/strong> means the Agent is offline or a folder is missing, and the page says &ldquo;Agent offline &mdash; testing needs a running agent.&rdquo; A folder typed as a mapped drive letter gets an amber advisory on the Folders step before you reach Check.<\/p><\/div><\/div>\n    <\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"step-4\">\n      <h3>Choose how often it scans, then create it<\/h3>\n<p>The defaults on <strong>Settings<\/strong> suit a folder that receives a few files a day. Four you may want to change:<\/p><dl class=\"qs-d-kv\" data-qs-seen=\"settings\"><dt>Scan interval<\/dt><dd><strong>Every hour<\/strong> by default; choose from every 5 minutes to daily. Each sweep compares size and modified time to find new, changed and vanished files.<\/dd><dt>Watch folder for changes (near real-time)<\/dt><dd>Off by default. On, the Agent reacts within seconds on local disks; on network shares it is best-effort and the scheduled scan remains the guarantee. <strong>Quiet period<\/strong> (15 seconds) waits for a file to finish being written.<\/dd><dt>Refresh before answering a query<\/dt><dd>Off by default. On, a query first re-scans when the last scan is older than the <strong>Staleness window<\/strong> (60 seconds), waiting at most the <strong>Query wait limit<\/strong> (5 seconds). It applies to people and add-ins, not to alert polling.<\/dd><dt>When a file vanishes<\/dt><dd><strong>Drop its rows<\/strong> by default, or <strong>Keep rows, mark deleted (tombstone)<\/strong>. The <strong>Vanish guard ratio<\/strong> (0.5) refuses a scan that loses more than half the files at once and keeps the previous inventory, which is what an offline share looks like.<\/dd><\/dl><p>Then pick the <strong>Data Realm<\/strong> the rows count against, check <strong>Review<\/strong> and click <strong>Create connector<\/strong>. The first scan starts right away. The connector&rsquo;s <strong>Manifest<\/strong> tab shows what it built and any file it set aside.<\/p>\n    <\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"5\" id=\"step-5\">\n      <h3>Look at your tables<\/h3>\n      <p>Open the connector: the <strong>Manifest<\/strong> tab lists the tables it built. In the <strong>Query Builder<\/strong> the same tables sit under the <code>fileset<\/code> schema. Three queries that work on day one:<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">How much space each file type takes<\/div><pre class=\"qs-d-code__body\">SELECT extension, COUNT(*) AS files, SUM(size_bytes) AS total_bytes\nFROM fileset.files\nGROUP BY extension\nORDER BY total_bytes DESC\nLIMIT 100<\/pre><\/div>\n<p>Tells you which file types fill the share and how many of each there are.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">The biggest folders, and any that were skipped<\/div><pre class=\"qs-d-code__body\">SELECT path, subtree_file_count, subtree_bytes, skip_reason\nFROM fileset.directories\nORDER BY subtree_bytes DESC\nLIMIT 100<\/pre><\/div>\n<p>Ranks folders by total size and shows any the scan did not enter, for example past Max depth.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">What vanished in the last seven days<\/div><pre class=\"qs-d-code__body\">SELECT relative_path, prev_size_bytes, detected_by, event_at\nFROM fileset.files_events\nWHERE event_type = 'vanished'\n  AND event_at &gt;= now() - INTERVAL 7 DAY\nORDER BY event_at DESC\nLIMIT 100<\/pre><\/div>\n<p>Lists each file that disappeared, how big it was, and when the scan noticed.<\/p>\n<p>Every folder connector also serves the same bookkeeping tables, all in the <code>fileset<\/code> schema:<\/p><div class=\"qs-d-table__wrap\"><table class=\"qs-d-table\" data-qs-seen=\"common\"><thead><tr><th>Table<\/th><th>What it holds<\/th><\/tr><\/thead><tbody><tr><td><code>files<\/code><\/td><td>Every file currently in the folder: path, name, extension, size, created and modified times, first and last seen. A view over <code>files_current<\/code>, which also keeps files that have vanished.<\/td><\/tr><tr><td><code>files_events<\/code><\/td><td>The change history: one row per file that <code>appeared<\/code>, was <code>modified<\/code>, <code>vanished<\/code>, was set aside (<code>drift<\/code>) or was <code>refused<\/code>, with the time in <code>event_at<\/code>, how it was noticed in <code>detected_by<\/code> and the reason in <code>detail<\/code>.<\/td><\/tr><tr><td><code>directories<\/code>, <code>directory_snapshots<\/code>, <code>volumes<\/code><\/td><td>Folder counts and sizes, how they grew, and the disks or shares the roots live on.<\/td><\/tr><tr><td><code>_source_file<\/code>, <code>_row_id<\/code><\/td><td>Two columns on every data row: which file the row came from, and a stable row id inside that file. Group by <code>_source_file<\/code> to compare files.<\/td><\/tr><\/tbody><\/table><\/div>\n    <\/li>\n<\/ol>\n\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-circle-check\"><\/i><p><strong>That&rsquo;s it.<\/strong> Drop a new file in the folder and, after the next scan, it is in the table. The files never left the computer they were on.<\/p><\/div>\n\n<!-- qs-partial:network-share -->\n<h2 id=\"network-share\">Reaching a file on a network share<\/h2>\n<p>The Agent opens files as a background service, not as you, so a file on another computer needs one extra step. Which step depends on the computer the Agent runs on.<\/p>\n<div class=\"qs-d-grid\" data-qs-seen=\"network-share\">\n  <div class=\"qs-d-card\" data-zone=\"mint\" id=\"network-share-windows\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-brands fa-windows\"><\/i><\/span>\n    <h3>Windows<\/h3>\n    <p>Type the network path, like <strong>\\\\server\\share\\folder<\/strong>, never a mapped drive letter such as <strong>S:<\/strong>, which the Agent cannot see. If the share only lets in named people, click <strong>Service identity<\/strong> (the chip under the path, or a folder&rsquo;s <strong>Credential<\/strong> column) and store a login for that server: a company domain account, or an account made on the server itself with <strong>Domain<\/strong> left blank. The Agent then signs in to that server and reads the file there, and every connector on that Agent that reads the same server must use the same login. Without a login, it reads as its own service account, which a company domain sees as the computer itself. <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-windows\" data-qs-cta=\"where_files\">Step by step on Windows<\/a><\/p>\n  <\/div>\n  <div class=\"qs-d-card\" data-zone=\"slate\" id=\"network-share-linux\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-brands fa-linux\"><\/i><\/span>\n    <h3>Linux<\/h3>\n    <p>Share logins stored in the Portal are not used on Linux: an administrator mounts the share on the Agent&rsquo;s computer first, in a folder under <strong>\/mnt<\/strong> or <strong>\/media<\/strong>, because the Agent&rsquo;s service cannot see <strong>\/home<\/strong> or <strong>\/run\/user<\/strong>. In the connector, keep the <strong>\\\\server\\share<\/strong> path, which the Agent maps onto the mount, or type the mount path instead, such as <strong>\/mnt\/fileserver-shared\/Accounts<\/strong>. <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-linux\" data-qs-cta=\"where_files\">How to mount a share on Linux<\/a><\/p>\n  <\/div>\n  <div class=\"qs-d-card\" data-zone=\"slate\" id=\"network-share-macos\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-brands fa-apple\"><\/i><\/span>\n    <h3>Mac<\/h3>\n    <p>Share logins stored in the Portal are not used on a Mac: mount the share first from Terminal with <strong>sudo<\/strong>, in a folder under <strong>\/Volumes<\/strong>, so the Agent&rsquo;s background service can see it. In the connector, keep the <strong>\\\\server\\share<\/strong> path, which the Agent maps onto the mount, or type the mount path instead, such as <strong>\/Volumes\/fileserver-shared\/Accounts<\/strong>. <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-macos\" data-qs-cta=\"where_files\">How to mount a share on a Mac<\/a><\/p>\n  <\/div>\n<\/div>\n<p>If the test cannot get to the share, look for these words in its result: <strong>unreachable<\/strong> means the Agent&rsquo;s computer got no answer from the server. On Linux or a Mac, <strong>not mounted<\/strong> means the share still has to be mounted, and that message includes the exact mount command for your server.<\/p>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-folder-tree\"><\/i><p><strong>Folders on a share?<\/strong> On Windows, one login covers every folder you add from the same server. <strong>Watch folder for changes<\/strong> works on a share too, on a best-effort basis; the scheduled scan is what guarantees every change is picked up.<\/p><\/div>\n<!-- \/qs-partial:network-share -->\n<h3 id=\"share-status\">When a folder is not reachable<\/h3>\n<p>Every folder on the <strong>Folders<\/strong> step shows a status as soon as you add it. Hover the status to read the Agent&rsquo;s own message; its first words say which case it is.<\/p>\n<div class=\"qs-d-table__wrap\"><table class=\"qs-d-table\"><thead><tr><th>Status or message<\/th><th>What it means<\/th><th>What to do<\/th><\/tr><\/thead><tbody>\n<tr><td><strong>denied<\/strong><\/td><td>The share did not let the Agent in. With no login stored, a Windows Agent reads as its service account, which a company domain sees as the computer itself.<\/td><td>Windows: click <strong>Service identity<\/strong> in the folder&rsquo;s <strong>Credential<\/strong> column and store a login that can read the share, or ask whoever runs the server to give the stored one read access. Linux or Mac: the share is mounted, but its permissions keep the Agent out; check how it is mounted (<a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-linux\" data-qs-cta=\"where_files\">Linux<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-macos\" data-qs-cta=\"where_files\">Mac<\/a>).<\/td><\/tr>\n<tr><td><strong>credentials invalid<\/strong>, or <strong>The stored credentials for \\\\server were refused<\/strong><\/td><td>The server rejected the stored login: a typo, the wrong domain or a changed password. The Agent waits a minute before it tries that login again, so the account is not locked out.<\/td><td>Click the account name in the <strong>Credential<\/strong> column and type the login again. For an account made on the server itself, leave <strong>Domain<\/strong> blank.<\/td><\/tr>\n<tr><td><strong>missing<\/strong><\/td><td>No folder at that path. On Windows, a server name that cannot be found, or a share the server does not have, also shows as missing.<\/td><td>Check the names, or pick the folder with <strong>Add folder from the agent<\/strong> instead of typing it.<\/td><\/tr>\n<tr><td><strong>unreachable<\/strong>, or <strong>\\\\server did not answer<\/strong><\/td><td>No answer from the server: it is off, the name is wrong, or a firewall blocks file sharing.<\/td><td>Open the same <strong>\\\\server\\share<\/strong> path on the Agent&rsquo;s computer. If that fails too, it is a network problem.<\/td><\/tr>\n<tr><td><strong>not mounted<\/strong> (Linux or Mac)<\/td><td>The share is not mounted on the Agent&rsquo;s computer. Hover the status, or the <strong>Not mounted<\/strong> chip in the <strong>Credential<\/strong> column, for the exact mount command.<\/td><td>Mount the share (<a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-linux\" data-qs-cta=\"where_files\">Linux<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-macos\" data-qs-cta=\"where_files\">Mac<\/a>), then test the folder again.<\/td><\/tr>\n<tr><td><strong>Another connector on this agent already signs in to \\\\server as &hellip;<\/strong><\/td><td>Windows allows one account per file server on each computer, and another connector on this Agent uses a different one.<\/td><td>Use the same login as that connector, or change it on every connector that reads this server.<\/td><\/tr>\n<tr><td><strong>Windows already holds a sign-in to \\\\server for &hellip;<\/strong><\/td><td>Something else on the Agent&rsquo;s computer is signed in to that server with another account, and the Agent never closes a sign-in it did not make.<\/td><td>Follow the message: it names the Windows account the Agent runs as and says whether <strong>Use service identity<\/strong> would read the share through the existing sign-in.<\/td><\/tr>\n<tr><td><strong>This agent build cannot sign in to \\\\server with stored credentials.<\/strong><\/td><td>An older Agent that cannot use a stored share login.<\/td><td>Update the Agent, then test again.<\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n<h2 id=\"use\">Use it everywhere<\/h2>\n<p>The connector is a data source like any other in Query Streams. Save a query once in the <strong>Query Builder<\/strong> (the dialect is DuckDB) and use it from:<\/p><div class=\"qs-d-grid\" style=\"grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))\" data-qs-seen=\"use\"><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/icons8-excel-40.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><\/span><h3>Excel<\/h3><p>The add-in&rsquo;s <strong>Stream a Query<\/strong> drops the rows into a sheet and re-runs on a click. <a href=\"https:\/\/querystreams.com\/docs\/sql-in-excel\/\" data-qs-cta=\"use_excel\">Running SQL in Excel<\/a>.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-table-cells\"><\/i><\/span><h3>Google Sheets<\/h3><p>The <strong>Query Streamer<\/strong> add-on fills a tab you pick. <a href=\"https:\/\/querystreams.com\/docs\/power-query-for-google-sheets\/\" data-qs-cta=\"use_sheets\">Power Query for Google Sheets<\/a>.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"slate\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-comments\"><\/i><\/span><h3>Claude, Cursor and other AI clients<\/h3><p>Through the Query Streams MCP server; Claude knows the folder model, including <code>_source_file<\/code> and <code>files_events<\/code>. <a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-a-file-system-to-claude-via-mcp\/\" data-qs-cta=\"use_mcp\">File System with Claude via MCP<\/a>.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"slate\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-code\"><\/i><\/span><h3>REST API<\/h3><p>Any saved query becomes a read-only endpoint with its own key, on every plan. <a href=\"https:\/\/querystreams.com\/docs\/file-system-rest-api\/\" data-qs-cta=\"use_api\">File System REST API<\/a>.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"deep\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-robot\"><\/i><\/span><h3>Nova<\/h3><p>Ask in plain English on the Business plan; Nova knows every folder table and column from its built-in descriptions.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"deep\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-clock-rotate-left\"><\/i><\/span><h3>Automations<\/h3><p>Sync the rows to Airtable, Smartsheet, Baserow, SeaTable or a sheet on a schedule. <a href=\"https:\/\/querystreams.com\/docs-category\/automation-integrations\/\" data-qs-cta=\"use_auto\">Automation guides<\/a>.<\/p><\/div><\/div><p>Folder tables join to your other connectors too: a federated query can match <code>_source_file<\/code> names or order ids in the files and folders on your computer or file share against a database on the same Agent.<\/p>\n\n<h2 id=\"fresh\">How new, changed and deleted files show up<\/h2>\n<div class=\"qs-d-grid\" data-qs-seen=\"fresh\"><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-file-circle-plus\"><\/i><\/span><h3>New and changed files<\/h3><p>On every <strong>Scan interval<\/strong> (or within seconds with <strong>Watch folder<\/strong> on) a new file that fits the layout has its rows added and gets an <code>appeared<\/code> event. A changed file is re-read in one transaction: its old rows go, its new rows come, and it gets a <code>modified<\/code> event.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"slate\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-file-circle-xmark\"><\/i><\/span><h3>Deleted files<\/h3><p>A file that vanishes drops its rows by default, or keeps them marked deleted if you chose the tombstone option, and gets a <code>vanished<\/code> event. If more than half the files disappear at once the scan is refused and the previous inventory stays: an offline share looks exactly like that.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"rose\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-box-archive\"><\/i><\/span><h3>Set-aside files<\/h3><p>A file that does not fit the layout, cannot be opened, or is over a cap is set aside whole: none of its rows load, and <code>files_events<\/code> gets a <code>drift<\/code> row naming the file and the column. Fix the file and save it; the next scan tries it again.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"dst\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-clock\"><\/i><\/span><h3>How fresh is what I see?<\/h3><p>Queries answer from the last scan. There is no Rescan or Sync now button; the scan interval, the folder watcher and <strong>Refresh before answering a query<\/strong> are the three controls. <code>MAX(last_seen_utc)<\/code> from <code>files_current<\/code> tells you when the Agent last looked.<\/p><\/div><\/div>\n\n\n<h2 id=\"parked\">Files that are set aside<\/h2>\n<p>Three words appear on the Check step and the Manifest tab. They mean different things:<\/p><dl class=\"qs-d-kv\" data-qs-seen=\"parked\"><dt>Set aside (parked)<\/dt><dd>The file does not match the pinned layout, or is unreadable, torn, locked or over a cap. It is all-or-nothing per file: a parked file contributes zero rows. <code>files_events<\/code> records a <code>drift<\/code> row whose <code>detail<\/code> names the file and the column. The file is skipped while its size and modified time stay the same, and retried as soon as it changes.<\/dd><dt>Unreadable<\/dt><dd>The Agent could not open or parse the file as its type: not a real workbook, locked by another program, a cloud placeholder, undecodable bytes. It parks on its own and the rest of the folder continues. Only a folder with zero readable files refuses the whole set.<\/dd><dt>Refused<\/dt><dd>The Agent could not pin any layout at all, for example because files disagree on a column type. No data table exists yet. <code>files_events<\/code> gets a <code>refused<\/code> row with the reason in <code>detail<\/code>, and the Agent re-tries on every scan until a layout pins. Fix or exclude the file it names and the message clears.<\/dd><\/dl><p>Where to look: the amber banner on <strong>Check<\/strong> (<strong>Show which files and why<\/strong>), the connector&rsquo;s <strong>Manifest<\/strong> tab afterwards. In SQL: <code>SELECT relative_path, event_type, detail FROM fileset.files_events WHERE event_type IN ('drift','refused') ORDER BY event_at DESC<\/code>.<\/p>\n<div class=\"qs-d-note\" data-zone=\"rose\"><i class=\"fa-solid fa-box-archive\"><\/i><p><strong>For the files and folders on your computer or file share that usually looks like this:<\/strong> File System reads no contents, so files are not set aside for layout; the nearest case is a folder deeper than Max depth, which appears in fileset.directories with skip_reason &#8216;max_depth&#8217;, or a share that drops offline, where the Vanish guard ratio refuses the scan and the previous inventory is kept.<\/p><\/div>\n\n<h2 id=\"limits\">Limits worth knowing<\/h2>\n<p>There is no plan limit on folders or on the number of files. The rows do count against your Data Realm like any other connector. Defaults you can raise or lower on the connector:<\/p><div class=\"qs-d-table__wrap\"><table class=\"qs-d-table\" data-qs-seen=\"limits\"><thead><tr><th>Setting<\/th><th>Default<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td>Max depth<\/td><td>8<\/td><td>How many folder levels below each root are scanned (1&ndash;64).<\/td><\/tr><tr><td>Max files per scan<\/td><td>100,000<\/td><td>Files considered in one sweep.<\/td><\/tr><tr><td>Max file size to hash<\/td><td>32 MiB<\/td><td>Only matters with <strong>Hash file contents<\/strong> on.<\/td><\/tr><tr><td>Event log retention<\/td><td>30 days<\/td><td>How long <code>files_events<\/code> rows are kept.<\/td><\/tr><tr><td>Scan parallelism per root<\/td><td>2<\/td><td>Folders read at once per root.<\/td><\/tr><\/tbody><\/table><\/div><p>Content caps, which park a file rather than truncate it: 2,000,000 rows or 512 MiB per file, 10,000,000 rows or 2 GiB per scan. A folder can hold at most 25 distinct layouts in <strong>One table per layout<\/strong> mode.<\/p>\n\n<h2 id=\"faq\">Questions people ask<\/h2>\n<div class=\"qs-d-faq\" data-qs-seen=\"faq_source\">\n    <details><summary>Does the File System connector read what is inside my files?<\/summary><div class=\"qs-d-faq__a\"><p>No. It records each file&rsquo;s path, name, size, dates and change history. File contents are never read. To query the rows inside CSV or Excel files, add the matching card on the same folder: see <a href=\"https:\/\/querystreams.com\/docs\/combine-multiple-csv-files-into-one-table\/\">Combine multiple CSV files into one table<\/a> or <a href=\"https:\/\/querystreams.com\/docs\/merge-multiple-excel-files-into-one-table\/\">Merge multiple Excel files into one table<\/a>.<\/p><\/div><\/details>\n    <details><summary>How does it notice that a file was deleted?<\/summary><div class=\"qs-d-faq__a\"><p>Each scan compares the folder with the ledger by size and modified time. A missing file is marked vanished and gets a <code>vanished<\/code> row in <code>files_events<\/code>. If a share suddenly loses most of its files, usually because it went offline, the <strong>Vanish guard ratio<\/strong> refuses that scan and the last good inventory is kept instead of deleting everything.<\/p><\/div><\/details>\n    <details><summary>Can I index a network share or a synced OneDrive folder?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. On a Windows Agent, type the share as <code>\\\\server\\share\\folder<\/code>; if it lets in only named people, store a login for that server from the folder&rsquo;s <strong>Credential<\/strong> column. On Linux or a Mac, logins stored in the Portal are not used: mount the share first, under \/mnt or \/media on Linux or under \/Volumes on a Mac, as <a href=\"#network-share\">Reaching a file on a network share<\/a> explains. A synced OneDrive or Dropbox folder works when its files are stored on the computer, so set the folder to <strong>Always keep on this device<\/strong>. The Agent does not download cloud-only files.<\/p><\/div><\/details>\n    <details><summary>Why is a folder missing from the tables?<\/summary><div class=\"qs-d-faq__a\"><p>Look it up in <code>fileset.directories<\/code>. A folder deeper than <strong>Max depth<\/strong> (8 by default) is listed with <code>skip_reason<\/code> set to <code>max_depth<\/code>. Symbolic links, junctions and cloud placeholders are not followed unless <strong>Follow symlinks and junctions<\/strong> is on. A folder the Agent cannot open shows a status on its row as soon as you add it.<\/p><\/div><\/details>\n    <details><summary>How fresh is the inventory, and how do I refresh it?<\/summary><div class=\"qs-d-faq__a\"><p>The Agent sweeps the folders on the <strong>Scan interval<\/strong>, every hour by default. <strong>Watch folder for changes (near real-time)<\/strong> reacts within seconds on local disks and is best-effort on network shares. There is no refresh button. To see how fresh the tables are, take <code>MAX(last_seen_utc)<\/code> from <code>fileset.files_current<\/code> or <code>MAX(event_at)<\/code> from <code>fileset.files_events<\/code>.<\/p><\/div><\/details>\n<\/div>\n<div class=\"qs-d-faq\" data-qs-seen=\"faq\"><details><summary>Are my files uploaded anywhere?<\/summary><div class=\"qs-d-faq__a\"><p>No. The Agent reads them on its own computer and keeps the rows in an encrypted local cache there. A query runs against that cache and only the rows it returns leave the machine, over one outbound connection. Files are never modified, moved or converted.<\/p><\/div><\/details><details><summary>Do I need to open a port or run a VPN?<\/summary><div class=\"qs-d-faq__a\"><p>No. The Agent makes one outbound connection on port 443 and both requests and rows travel over it. If outbound HTTPS works, this works.<\/p><\/div><\/details><details><summary>Can the folder be on a network share, or in OneDrive or Dropbox?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. Type a share as <code>\\\\server\\share\\folder<\/code>, because the Agent runs as a service and cannot see drives mapped at your login. On Windows, store a login for the server if the share lets in only named people; without one the Agent reads as its own service account. On Linux or a Mac, mount the share first. A synced OneDrive or Dropbox folder works when its files are stored on the computer: set the folder to <strong>Always keep on this device<\/strong>. The Agent does not download cloud-only files.<\/p><\/div><\/details><details><summary>The folder has more than one kind of file. One connector or two?<\/summary><div class=\"qs-d-faq__a\"><p>One connector reads one file type. A folder with CSV and Parquet files is two connectors on the same root, one per type. Files that do not match the include pattern are ignored, not set aside.<\/p><\/div><\/details><details><summary>Is there a Rescan button?<\/summary><div class=\"qs-d-faq__a\"><p>No. The Agent scans on the <strong>Scan interval<\/strong>, reacts to changes when <strong>Watch folder<\/strong> is on, and can re-scan before answering a query when you turn that on. Edit the connector to change any of the three.<\/p><\/div><\/details><details><summary>Does the Free plan really cover this?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. Free is a plan you keep, not a trial that expires. Folder connectors have no file cap of their own; the rows count against your Data Realm like any other connector. See what each plan includes on the <a href=\"https:\/\/querystreams.com\/pricing\/\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"pricing\">pricing page<\/a>.<\/p><\/div><\/details><\/div>\n\n<div class=\"qs-d-also\" data-qs-seen=\"also\"><span>Other folders Query Streams turns into tables<\/span><a href=\"https:\/\/querystreams.com\/docs\/how-to-query-a-folder-of-files-with-sql\/\" data-qs-cta=\"hub\">How to query a folder of files with SQL<\/a><a href=\"https:\/\/querystreams.com\/docs-category\/file-set-connectors\/\" data-qs-cta=\"category\">All File Set guides<\/a><\/div><ul class=\"qs-d-related qs-d-related--cols\"><li><a href=\"https:\/\/querystreams.com\/docs\/combine-multiple-csv-files-into-one-table\/\" data-qs-cta=\"related\">CSV Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-a-folder-of-parquet-files-with-sql\/\" data-qs-cta=\"related\">Parquet Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/merge-multiple-excel-files-into-one-table\/\" data-qs-cta=\"related\">Excel Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/combine-multiple-sqlite-database-files\/\" data-qs-cta=\"related\">SQLite Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/turn-a-folder-of-json-files-into-sql-tables\/\" data-qs-cta=\"related\">JSONL Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-multi-record-csv-files-with-sql\/\" data-qs-cta=\"related\">Multi-record CSV<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/cnc-machine-monitoring-with-sql-from-controller-logs\/\" data-qs-cta=\"related\">Machine Logs<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-nginx-and-iis-logs-with-sql\/\" data-qs-cta=\"related\">Web Server Logs<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-docker-container-logs-with-sql\/\" data-qs-cta=\"related\">Container Logs<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-application-logs-with-sql\/\" data-qs-cta=\"related\">Application Logs<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-syslog-files-with-sql\/\" data-qs-cta=\"related\">System Logs<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/custom-log-analysis-with-sql\/\" data-qs-cta=\"related\">Custom Logs<\/a><\/li><\/ul>\n<div class=\"qs-d-support qs-d-support--foot\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>Still stuck?<\/strong> Open <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">Support<\/a> in Query Streams and tell us which step you are on and what you see. We will get you connected.<\/div><\/div>\n<script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"HowTo\",\"name\":\"Index a File System and Query It With SQL\",\"description\":\"Index every file under a folder or share as SQL tables: names, sizes, dates, change history, folder growth. Contents not read. Files stay on your network.\",\"totalTime\":\"PT15M\",\"step\":[{\"@type\":\"HowToStep\",\"position\":1,\"name\":\"Install the Query Streams Agent\",\"text\":\"Install the Agent (2.6.0 or later) on a computer that can open the folder and paste in your Access Key.\",\"url\":\"https:\/\/querystreams.com\/docs\/index-a-file-system-and-query-it-with-sql\/#step-1\"},{\"@type\":\"HowToStep\",\"position\":2,\"name\":\"Point it at the files and folders on your computer or file share\",\"text\":\"In Data Agents click Add connector, open Files & Folders, pick the File System card and add the root folders.\",\"url\":\"https:\/\/querystreams.com\/docs\/index-a-file-system-and-query-it-with-sql\/#step-2\"},{\"@type\":\"HowToStep\",\"position\":3,\"name\":\"Check what it will build\",\"text\":\"The Agent reads a sample of up to 64 files and shows the tables it will create; files that do not fit are listed, not dropped silently.\",\"url\":\"https:\/\/querystreams.com\/docs\/index-a-file-system-and-query-it-with-sql\/#step-3\"},{\"@type\":\"HowToStep\",\"position\":4,\"name\":\"Choose how often it scans\",\"text\":\"Set the scan interval, folder watching and what happens when a file vanishes, then click Create connector.\",\"url\":\"https:\/\/querystreams.com\/docs\/index-a-file-system-and-query-it-with-sql\/#step-4\"},{\"@type\":\"HowToStep\",\"position\":5,\"name\":\"Query the tables\",\"text\":\"Query fileset tables from Excel, Google Sheets, Nova, Claude or the REST API; every row carries _source_file.\",\"url\":\"https:\/\/querystreams.com\/docs\/index-a-file-system-and-query-it-with-sql\/#step-5\"}]}<\/script>\n<\/article>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[247],"doc_tag":[],"class_list":["post-6042","docs","type-docs","status-publish","hentry","doc_category-file-set-connectors"],"year_month":"2026-12","word_count":2263,"total_views":"76","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"systemz","author_nicename":"systemz","author_url":"https:\/\/querystreams.com\/de\/author\/systemz\/"},"doc_category_info":[{"term_name":"File Set Connectors","term_url":"https:\/\/querystreams.com\/de\/docs-category\/file-set-connectors\/"}],"doc_tag_info":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"betterdocs-category-thumb":false},"uagb_author_info":{"display_name":"systemz","author_link":"https:\/\/querystreams.com\/de\/author\/systemz\/"},"uagb_comment_info":0,"uagb_excerpt":null,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/docs\/6042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/comments?post=6042"}],"version-history":[{"count":3,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/docs\/6042\/revisions"}],"predecessor-version":[{"id":8215,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/docs\/6042\/revisions\/8215"}],"wp:attachment":[{"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/media?parent=6042"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/doc_category?post=6042"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/doc_tag?post=6042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}