List all files in the repository at a specific ref.
This page documents the earlier Code Storage SDKs: @pierre/storage, pierre-storage, and
code-storage-go. New code uses the Pierre SDK. To move code to the new SDK, use the
pierre-migrate
skill.
// List files from default branchconst files = await repo.listFiles();console.log(files.paths); // Array of file paths// List files from specific branch or commitconst branchFiles = await repo.listFiles({ ref: 'feature-branch', // branch name or commit SHA});console.log(`Files in ${branchFiles.ref}:`, branchFiles.paths);// List files from the ephemeral namespaceconst ephemeralFiles = await repo.listFiles({ ref: 'feature/demo-work', ephemeral: true,});console.log(`Ephemeral files:`, ephemeralFiles.paths);const page = await repo.listFiles({ path: 'docs', recursive: false, limit: 100,});console.log(page.entries, page.nextCursor);
# List files from the default branchfiles = await repo.list_files(ref="main")print(files["paths"]) # List of file paths# List files from a specific branch or commitbranch_files = await repo.list_files(ref="feature-branch")print(branch_files["paths"])# List files from the ephemeral namespaceephemeral_files = await repo.list_files( ref="feature/demo-work", ephemeral=True,)print(ephemeral_files["paths"])page = await repo.list_files( path="docs", recursive=False, limit=100,)print(page["entries"], page.get("next_cursor"))
// List files from the default branchfiles, err := repo.ListFiles(context.Background(), storage.ListFilesOptions{ Ref: "main",})fmt.Println(files.Paths)ephemeral := true// List files from the ephemeral namespaceephemeralFiles, err := repo.ListFiles(context.Background(), storage.ListFilesOptions{ Ref: "feature/demo-work", Ephemeral: &ephemeral,})fmt.Println(ephemeralFiles.Paths)recursive := falsepage, err := repo.ListFiles(context.Background(), storage.ListFilesOptions{ Path: "docs", Recursive: &recursive, Limit: 100,})fmt.Println(page.Entries, page.NextCursor)
Options
string
Branch name or commit SHA. Defaults to the default branch.
boolean
When true, resolves the ref under the ephemeral namespace.
string
Repository-relative file or subtree to list. An exact file path returns that file as a single
blob entry.
boolean
For subtree paths, when false, returns direct children of path.
string
Pagination cursor from a previous response.
number
Maximum entries to return.
Response
array
List of file paths in the repository
string
The resolved ref that was listed
array
Structured tree entries returned with the listing.
Show entry fields
string
Entry path relative to the repository root.
string
Entry type: blob, tree, symlink, or submodule.
string
Git file mode.
string
Cursor for the next page. Python: next_cursor; Go: NextCursor.
boolean
Whether additional pages are available. Python: has_more; Go: HasMore.
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"CODE STORAGE > DOCS","description":"Documentation for Code Storage, Git infrastructure for agents. Create repositories, write commits, and get Git remote URLs through the SDK, the HTTP API, or Git over HTTPS.","colors":{"primary":"#212121","light":"#212121","dark":"#000000"},"favicon":"https://mintcdn.com/pierrecomputercompany/tpi10qgTmJDRM3Lg/favicon.svg?fit=max\u0026auto=format\u0026n=tpi10qgTmJDRM3Lg\u0026q=85\u0026s=7b1b0d93ce711520845c0ee7d2ff2c2e","api":{"examples":{"autogenerate":false}},"background":{"color":{"light":"#F7F7F8","dark":"#151516"}},"navbar":{"links":[{"href":"https://code.storage","label":"[ DASHBOARD ]"}]},"footer":{"socials":{"x":"https://x.com/pierredotco","github":"https://github.com/pierredotco"},"links":[{"items":[{"label":"Status","href":"https://status.code.storage"},{"label":"Pricing","href":"https://code.storage/pricing"},{"label":"Terms","href":"https://code.storage/legal/terms"},{"label":"Privacy","href":"https://code.storage/legal/privacy"}]}]},"seo":{"metatags":{"robots":"noindex, nofollow","og:site_name":"Code.Storage Documentation","og:type":"website","og:image":"https://code.storage/assets/images/docs-og.png","twitter:card":"summary_large_image","twitter:site":"@pierredotco","twitter:creator":"@pierredotco","keywords":"git infrastructure for agents, git infrastructure, git for ai agents, agent git, git storage, code storage, version control, git hosting, developer tools","author":"Pierre Computer Company, Inc.","theme-color":"#000000"}},"fonts":{"family":"Berkeley Mono","source":"https://code.storage/assets/fonts/BerkeleyMonoVariable.woff2","format":"woff2"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"min-dark"}},"latex":false},"errors":{"404":{"redirect":false,"title":"FOUR OH FOUR","description":"Whew we've got nothing here. Try navigating from [home](https://code.storage/), or searching below."}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","add-mcp"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pierrecomputercompany","hasAudioNarration":false,"actualSubdomain":"pierrecomputercompany","customDomains":["code.storage"],"gitSource":{"type":"github","owner":"pierredotco","repo":"monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afbdd9201554936395edbb8","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"API Reference","count":40},{"language":"default","tag":"Repos API","count":38},{"language":"default","tag":"Platform","count":15},{"language":"default","tag":"Repos","count":13},{"language":"default","tag":"Workflows","count":8},{"language":"default","tag":"Libraries","count":4},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Metadata API","count":1}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"mint.css","content":"@font-face{font-family:'Berkeley Mono';src:url('https://code.storage/assets/fonts/BerkeleyMonoVariable.woff2')\n\t\tformat('woff2-variations');font-style:normal;font-display:block}:root{--git3p-gray-980: #1f1f21;--git3p-gray-960: #2e2e30;--git3p-gray-940: #39393c;--git3p-gray-920: #424245;--git3p-gray-500: #8e8e95;--git3p-gray-100: #eeeeef;--git3p-blue-400: #7cacf6;--git3p-blue-500: #008df4;--font-mono: 'Berkeley Mono', 'Monaco', 'Courier New', monospace;--base-font-size: 12px;--line-height: 20px;--page-background: #f7f7f8;--blockquote-bg: #f1f1f1;--blockquote-corner-dark: rgb(0 0 0 / 0.15);--blockquote-corner-light: var(--page-background);--text-nav: var(--git3p-gray-960);--text-selected: var(--git3p-gray-980);--text-secondary: var(--git3p-gray-980);--accent-color: #000000;--table-border-color: rgb(0 0 0 / 0.2);--codeblock-bg: #f6f8fa;--bg-elevated: #ffffff;--heading-link-wash: rgb(0 0 0 / 0.03);--link-underline: #9ca3af;--sidebar-width: 22rem}.dark,html.dark,[data-theme=\"dark\"]{--page-background: var(--git3p-gray-980);--blockquote-bg: var(--git3p-gray-960);--blockquote-corner-dark: rgb(255 255 255 / 0.12);--blockquote-corner-light: #151516;--text-nav: var(--git3p-gray-100);--text-selected: var(--git3p-gray-100);--text-secondary: var(--git3p-gray-100);--accent-color: #fff;--table-border-color: rgb(255 255 255 / 0.12);--codeblock-bg: #0d1117;--primary-light: 255, 255, 255;--heading-link-wash: rgb(255 255 255 / 0.03);--shiki-dark-bg: transparent;--link-underline: rgb(255 255 255 / 0.5)}#content-area .prose,body-content,mdx-content{color:#000!important}.dark #header .prose,.dark #content-area .prose,[data-theme=\"dark\"] #content-area .prose,.dark body-content,[data-theme=\"dark\"] body-content,.dark mdx-content,[data-theme=\"dark\"] mdx-content{color:#fff!important}html{font-family:var(--font-mono)!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body,#content-area{font-size:var(--base-font-size);font-family:var(--font-mono);line-height:var(--line-height)}#content,#content-area .mdx-content{font-family:inherit;font-size:inherit;line-height:inherit;font-variant-ligatures:contextual!important;font-feature-settings:'liga', 'calt'!important}[data-component-part=\"step-number\"]{margin-top:-4px}[data-component-part=\"step-title\"]{margin-block:8px!important}[data-component-part=\"step-content\"]{font-size:var(--base-font-size);line-height:var(--line-height)}[data-component-part=\"step-content\"] :where(p,[data-as=\"p\"]){margin-block:0!important}button{font-family:inherit!important;font-size:inherit!important}h1,h2,h3,h4,h5,h6{font-family:var(--font-mono)!important}h1{font-size:24px!important;font-weight:700!important;line-height:1.3!important;letter-spacing:-0.01em!important}h1::before{content:'# '!important;display:inline!important;opacity:0.3!important}h2{font-size:14px!important;font-weight:600!important;line-height:var(--line-height)!important;letter-spacing:-0.01em!important}#content-area h2,.mdx-content h2,.prose h2{font-size:14px!important;font-weight:600!important;line-height:var(--line-height)!important;letter-spacing:-0.01em!important}h3{font-size:14px!important;font-weight:600!important;line-height:var(--line-height)!important}h4{font-size:14px!important;font-weight:600!important;line-height:var(--line-height)!important}h5,h6{font-size:var(--base-font-size)!important;font-weight:600!important;line-height:var(--line-height)!important}h1,h2,h3,h4,h5,h6{text-transform:uppercase!important}h1{font-size:16px!important}h2,h3,h4,h5,h6,p,[data-as=\"p\"]{font-size:12px!important}h2{margin-top:40px!important}h2:first-child{margin-top:0px!important}h4{margin-top:24px!important}.text-xs,.prose :where(.text-xs),.text-sm,.prose :where(.text-sm),.text-base,.prose :where(.text-base){font-size:var(--base-font-size)!important}.text-lg,.prose :where(.text-lg){font-size:14px!important}strong,b{font-weight:600!important}em,i{font-style:italic!important}button>div>svg{width:0.75rem!important;height:0.75rem!important}.rounded,[class*=\"rounded-\"]{border-radius:0!important}#content-area .api-section-heading-title{margin-top:12px!important}.api-section pre{margin-top:0px!important;margin-bottom:8px!important;background-color:#ffffff!important;color:#393a34!important;--shiki-dark-bg: transparent;--shiki-dark: #e0e0e0}.dark .api-section pre,html.dark .api-section pre,[data-theme=\"dark\"] .api-section pre{background-color:transparent!important;color:var(--shiki-dark)!important}.api-section details{background-color:var(--codeblock-bg)!important}#sidebar{width:var(--sidebar-width)!important}#sidebar-content{padding:16px}#sidebar-content+ul{width:calc(var(--sidebar-width) - 1px)!important}#sidebar button[aria-label*=\"close\"],#sidebar button[aria-label*=\"Close\"],#sidebar>div>button:first-child,#sidebar-close-button{display:none!important}.nav-logo{padding-inline:0!important}.sidebar-group-header,.breadcrumb-item{text-transform:uppercase}.sidebar-group a,.sidebar-group button{gap:6px;padding-block:6px;padding-left:0!important;border-left:0;line-height:var(--line-height)!important}.sidebar-group [data-active=\"true\"]>a{font-weight:600}.sidebar-group [data-active=\"true\"]>a::before{content:'~'}.sidebar-group button+ul{padding-left:12px!important}.nav-logo{font-size:12px!important;font-weight:normal!important;letter-spacing:0!important;line-height:2!important}#footer,footer{width:100%!important;border:none!important;border-top:none!important;padding-bottom:0!important;margin-left:0!important;padding-left:var(--sidebar-width)!important}.advanced-footer>div{width:100%!important;max-width:88rem!important;margin-left:auto!important;margin-right:auto!important;padding-left:16px!important;padding-right:16px!important;padding-top:16px!important;padding-bottom:0!important;gap:16px!important}@media (max-width: 1280px){#footer,footer{padding-left:0!important}}#table-of-contents-content{margin-top:12px}.toc-item{padding-left:0!important}.toc-item>a{line-height:var(--line-height)!important;padding-block:4px!important}.toc-item .toc-item>a{padding-left:24px!important}[role=\"dialog\"] [id^=\"headlessui-dialog-panel\"],[data-testid=\"api-playground-modal\"]{background-clip:padding-box!important;border-color:light-dark(rgb(0 0 0 / 0.15), rgb(255 255 255 / 0.12))!important}#content-container{margin-left:var(--sidebar-width)!important}@media (max-width: 1280px){#content-container{margin-left:0!important}#sidebar,#table-of-contents-layout{border-left:none!important;border-right:none!important}}@media (min-width: 1024px) and (max-width: 1280px){.max-lg\\:contents.lg\\:flex.lg\\:w-full,.max-lg\\:contents.lg\\:flex-1.lg\\:min-w-0.lg\\:overflow-x-clip{display:contents!important}.block.lg\\:hidden:has(>#navbar){display:block!important;width:0!important;height:0!important}.block.lg\\:hidden:has(>#navbar)>#navbar{position:fixed!important;top:0!important;left:0!important;width:100%!important}.block.lg\\:hidden:has(>#navbar) button.lg\\:hidden.h-14.px-5{display:flex!important}[role=\"dialog\"].lg\\:hidden[id^=\"headlessui-dialog\"]{display:block!important}#sidebar:not([data-state=\"open\"]):not([aria-hidden=\"false\"]){display:none!important}#sidebar[data-state=\"open\"],#sidebar[aria-hidden=\"false\"]{display:block!important}#content-container.lg\\:ml-\\[19rem\\]{margin-left:0!important;padding-top:10rem!important}}#content .mt-4{margin-top:16px!important}#content .mt-5{margin-top:20px!important}#content .mt-6{margin-top:24px!important}#content .mt-8{margin-top:32px!important}#content .mt-10{margin-top:40px!important}#content .mb-2{margin-bottom:8px!important}#content .mb-3{margin-bottom:12px!important}#content .mb-4{margin-bottom:16px!important}#content .mb-5{margin-bottom:20px!important}#content .mb-10{margin-bottom:40px!important}#content .my-5{margin-top:20px!important;margin-bottom:20px!important}#content .ml-0{margin-left:0!important}#content .p-2{padding:8px!important}#content .pl-3{padding-left:12px!important}#content .pl-5\\.5{padding-left:22px!important}#content{margin-top:20px!important;margin-bottom:40px!important}#content h1::before{content:'# '!important;opacity:0.3!important}#content h2::before{content:'## '!important;opacity:0.3!important}#content .card h2{margin-top:20px!important;margin-bottom:8px!important}#content h3::before,#content h3::after{content:'**'!important;opacity:0.3!important}#content :is(h1,h2,h3,h4,h5,h6)::before,#content :is(h1,h2,h3,h4,h5,h6)::after,#content :is(h1,h2,h3,h4,h5,h6) a,#content :is(h1,h2,h3,h4,h5,h6) a::before,#content :is(h1,h2,h3,h4,h5,h6) a::after{border-bottom:none!important;text-decoration:none!important}#content :is(h1,h2,h3,h4,h5,h6) a{margin-top:-4px}#content :is(h1,h2,h3,h4,h5,h6) a>div{background:var(--heading-link-wash)!important;box-shadow:none!important;border:none!important}#content :is(h1,h2,h3,h4,h5,h6) a svg{width:12px!important;height:12px!important}#content :is(h1,h2,h3,h4,h5,h6) a:focus,#content :is(h1,h2,h3,h4,h5,h6) a:focus-visible{outline:none!important;box-shadow:none!important}#content :is(h1,h2,h3,h4,h5,h6) .group\\/link:focus>div,#content :is(h1,h2,h3,h4,h5,h6) .group\\/link:focus-visible>div{border-width:1px!important;border-color:var(--accent-color)!important;box-shadow:none!important}@layer components{#content-area .prose ul,#content-area .prose ol{padding-left:4ch!important}#content-area .prose ul>li,#content-area .prose ol>li{padding-left:0!important;\u0026::marker{color:var(--tw-prose-counters)!important}}#content-area .prose ul>li::before,#content-area .prose ol>li::before{display:none!important}#content-area .prose ul{> li {\n\t\t\tlist-style-type: '— ' !important;\n\t\t}}}#content-area table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-family:inherit!important;font-size:inherit!important;border:1px dashed var(--table-border-color, rgba(0, 0, 0, 0.2))!important}#content-area table thead tr,#content-area table tbody tr{display:table-row!important;overflow:visible!important}#content-area table th,#content-area table td{padding:8px!important;border:none!important;vertical-align:top!important}#content-area table th{font-weight:600!important;text-align:left!important}#content-area table thead th{border-bottom:1px dashed var(--table-border-color, rgba(0, 0, 0, 0.2))!important}#content-area table th+th,#content-area table td+td{border-left:1px dashed var(--table-border-color, rgba(0, 0, 0, 0.2))!important}#content-area table tr+tr td,#content-area table tr+tr th{border-top:1px dashed var(--table-border-color, rgba(0, 0, 0, 0.2))!important}#content-area .table{-webkit-mask-image:none!important;mask-image:none!important;overflow-y:visible!important;padding-bottom:2px!important;margin-bottom:2px!important}blockquote:not(.sr-only){position:relative!important;margin-top:20px!important;margin-bottom:20px!important;padding:20px!important;background-color:var(--blockquote-bg)!important;border:0!important}.callout,blockquote:not(.sr-only){--corner-folded-bg: light-dark(rgb(0 0 0 / 0.15), rgb(255 255 255 / 0.12));position:relative!important;\u0026::before,\u0026::after{content:''!important;position:absolute!important;top:0!important;left:0!important;width:12px!important;height:12px!important;border:6px solid transparent!important}\u0026::before{border-bottom-color:var(--corner-folded-bg)!important;border-right-color:var(--corner-folded-bg)!important}\u0026::after{border-top-color:light-dark(var(--page-background), rgb(var(--background-dark)))!important;border-left-color:light-dark(var(--page-background), rgb(var(--background-dark)))!important}}.callout{border:0;box-shadow:inset 0 0 0 1px var(--corner-folded-bg)!important}[data-callout-type=\"warning\"]{--corner-folded-bg: light-dark(rgb(254 240 138), rgb(113 63 18))}[data-callout-type=\"note\"]{--corner-folded-bg: light-dark(rgb(191 219 254), rgb(30 58 138))}code,pre{font-family:var(--font-mono)!important;background:transparent!important}:not(pre)>code{padding:0!important;border-radius:0!important}#content-area code:not(pre code){font-family:var(--font-mono)!important;font-size:var(--base-font-size)!important;line-height:var(--line-height)!important;font-weight:500!important;display:inline!important;align-items:center!important}#content-area code:not(pre code)::before,#content-area code:not(pre code)::after{content:'`'!important;color:rgba(0, 0, 0, 0.35)!important}.dark #content-area code:not(pre code)::before,.dark #content-area code:not(pre code)::after,[data-theme=\"dark\"] #content-area code:not(pre code)::before,[data-theme=\"dark\"] #content-area code:not(pre code)::after{color:rgba(255, 255, 255, 0.45)!important}#header{margin-bottom:0px!important}#header h1{margin-bottom:0px!important}#header p{margin-top:12px!important;margin-bottom:0!important;position:relative!important;line-height:var(--line-height)!important;color:var(--text-secondary)!important}#header p::after{content:'~*~';display:block;margin-top:var(--line-height);font-family:inherit;font-size:inherit;color:var(--accent-color, #000000);opacity:0.25;white-space:nowrap;overflow:hidden}html{scrollbar-color:rgb(128 128 128 / 30%) transparent}::webkit-scrollbar{width:6px;height:6px}::webkit-scrollbar-track{background:transparent}::webkit-scrollbar-thumb{background-color:rgb(128 128 128 / 30%)!important;border:1px solid transparent!important;border-radius:3px!important}@supports (-moz-appearance: none){html,[data-component-part=\"code-block-root\"]{scrollbar-width:thin!important;scrollbar-color:rgb(128 128 128 / 30%) transparent!important}}::selection{background:#ffff00!important;color:#000000!important}html.dark ::selection,[data-theme=\"dark\"] ::selection{background:#fff!important;color:#0a0f1c!important}html:not(.dark) #page-context-menu button,html:not(.dark) #search-bar-entry{background-color:var(--bg-elevated)!important}[data-radix-collection-item][role=\"menuitem\"]{padding:8px!important}#pagination{margin-bottom:20px!important;background-color:transparent!important;align-items:center!important}#pagination.bg-gray-50\\/80,#pagination.dark\\:bg-white\\/\\[0\\.03\\]{background-color:transparent!important}#pagination.p-1{padding:0!important}#pagination>a:first-child{align-self:center!important;padding-left:0!important;padding-right:0!important}#pagination a span:has(+svg),#pagination a svg~span{text-transform:uppercase!important}#pagination .bg-background-light,#pagination .dark\\:bg-background-dark{background-color:transparent!important}#pagination .hover\\:ring-1:hover,#pagination .hover\\:ring-gray-200:hover,#pagination .dark\\:hover\\:ring-gray-800:hover{box-shadow:none!important;border:none!important;outline:none!important}#pagination .w-px{background-color:light(rgb(0 0 0 / 12%), rgb(255 255 255 / 12%))!important}.dark\\:text-primary-light:is(.dark *){color:rgba(var(--primary-light), var(--tw-text-opacity))!important}footer.advanced-footer>div>.flex.items-center.justify-between{display:none}.code-group{background-color:#fff!important;border:1px solid rgb(0 0 0 / 12%)!important}html.dark .code-group,[data-theme=\"dark\"] .code-group{background-color:#1f1f1f!important;border:1px solid var(--table-border-color)!important}.code-group [data-component-part=\"code-group-tab-bar\"]{background:transparent!important}button[role=\"tab\"][data-radix-collection-item]{position:relative;border-radius:0!important;padding-bottom:0!important;margin-right:12px!important;padding-left:0!important;padding-right:0!important;margin-bottom:1px!important}button[role=\"tab\"][data-radix-collection-item]>div{background:transparent!important;border-radius:0!important;padding:0!important}button[role=\"tab\"][data-radix-collection-item]>div.absolute{display:none!important}button[role=\"tab\"][data-radix-collection-item]::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:transparent;transition:background-color 0.2s ease}button[role=\"tab\"][data-radix-collection-item]:hover::after{background:rgba(0, 0, 0, 0.35)}html.dark button[role=\"tab\"][data-radix-collection-item]:hover::after,[data-theme=\"dark\"] button[role=\"tab\"][data-radix-collection-item]:hover::after{background:rgba(255, 255, 255, 0.5)}button[role=\"tab\"][data-radix-collection-item][data-state=\"active\"]::after{background:var(--accent-color)}#content [data-as=\"p\"]:has(strong):has(+[data-table-wrapper]),#content p:has(strong):has(+[data-table-wrapper]){margin-bottom:0!important}#content [data-table-wrapper]:has(table){margin-top:0!important}#content a:has(code),#content-area a:has(code),.prose a:has(code){border-bottom:none!important;text-decoration:none!important}#content a code,#content-area a code,.prose a code{border-bottom:1px solid var(--link-underline)!important;text-decoration:none!important;transition:border-color 0.15s ease!important}#content a:hover code,#content-area a:hover code,.prose a:hover code{border-bottom-color:var(--accent-color)!important}html:not(.dark) #content a:hover code,html:not(.dark) #content-area a:hover code,html:not(.dark) .prose a:hover code{border-bottom-color:var(--accent-color)!important}html.dark #content a:hover code,html.dark #content-area a:hover code,html.dark .prose a:hover code,[data-theme=\"dark\"] #content a:hover code,[data-theme=\"dark\"] #content-area a:hover code,[data-theme=\"dark\"] .prose a:hover code{border-bottom-color:var(--accent-color)!important}#content a code::before,#content a code::after,#content-area a code::before,#content-area a code::after,.prose a code::before,.prose a code::after{border-bottom:none!important;text-decoration:none!important}.sidebar-group .method-nav-pill{display:none!important}.sidebar-group li:not([data-active=\"true\"]) a:has([class*=\"bg-[#FDEAD8]\"][class*=\"text-[#AE590A]\"]){color:var(--git3p-gray-500)!important;\u0026:hover{color:var(--text-selected)!important}}.sidebar-group a:has([class*=\"bg-[#FDEAD8]\"][class*=\"text-[#AE590A]\"]){span[class*='break-words'] {\n\t\ttext-decoration: line-through !important;\n\t\ttext-decoration-thickness: 1px !important;\n\t\ttext-decoration-color: currentColor !important;\n\t}}.sidebar-group div[class*=\"bg-[#FDEAD8]\"]{flex-direction:column!important;justify-content:start!important;padding-block:4px!important;width:4ch!important;overflow:hidden!important;color:rgb(255 0 0 / 0.85)!important;background:rgb(255 0 0 / 0.15)!important;text-align:center!important}.sidebar-group div[class*=\"bg-[#FDEAD8]\"]::before{content:'[D]'!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:12px!important;font-family:var(--font-mono)!important;font-weight:500!important;line-height:1!important}#content-area div[class*=\"bg-[#FDEAD8]\"]{width:auto!important;height:auto!important;padding:4px 6px!important;font-size:12px!important;color:rgb(255 0 0 / 0.85)!important;text-transform:capitalize!important;background:rgb(255 0 0 / 0.15)!important}"}],"page":{"pagePath":"sdk/repos/files-list","slug":"/sdk/repos/files-list","pageMetadata":{"title":"repo.listFiles()","description":"List all files in the repository at a specific ref.","href":"/sdk/repos/files-list","hidden":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"List all files in the repository at a specific ref.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,ParamField,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[`This page documents the earlier Code Storage SDKs: `,_jsx(_components.code,{children:`@pierre/storage`}),`, `,_jsx(_components.code,{children:`pierre-storage`}),`, and\n`,_jsx(_components.code,{children:`code-storage-go`}),`. New code uses the `,_jsx(_components.a,{href:`/sdks`,children:`Pierre SDK`}),`. To move code to the new SDK, use the\n`,_jsxs(_components.a,{href:`https://github.com/pierrecomputer/skills/tree/main/skills/pierre-migrate`,children:[_jsx(_components.code,{children:`pierre-migrate`}),`\nskill`]}),`.`]})}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`23`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light min-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292e`,\"--shiki-dark\":`#b392f0`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:`// List files from default branch`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` files`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:` repo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`listFiles`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:`console`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:`files`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.paths); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:`// Array of file paths`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:`// List files from specific branch or commit`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` branchFiles`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:` repo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`listFiles`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` ref`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:` 'feature-branch'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:` // branch name or commit SHA`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:`console`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:\"`Files in \"}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#F97583`},children:\"${\"}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:`branchFiles`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`ref`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#F97583`},children:`}`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:\":`\"}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:` branchFiles`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.paths);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:`// List files from the ephemeral namespace`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` ephemeralFiles`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:` repo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`listFiles`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` ref`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:` 'feature/demo-work'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` ephemeral`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` true`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:`console`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:\"`Ephemeral files:`\"}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:` ephemeralFiles`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.paths);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` page`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:` repo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`listFiles`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` path`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:` 'docs'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` recursive`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` false`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` limit`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#F8F8F8`},children:` 100`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:`console`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:`page`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.entries`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#79B8FF`},children:` page`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.nextCursor);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`21`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light min-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292e`,\"--shiki-dark\":`#b392f0`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:`# List files from the default branch`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`files `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` repo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`list_files`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#BBBBBB`},children:`ref`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"main\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B392F0`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`(files[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"paths\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`])`}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:` # List of file paths`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:`# List files from a specific branch or commit`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`branch_files `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` repo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`list_files`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#BBBBBB`},children:`ref`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"feature-branch\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B392F0`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`(branch_files[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"paths\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`])`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:`# List files from the ephemeral namespace`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`ephemeral_files `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` repo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`list_files`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#BBBBBB`},children:` ref`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"feature/demo-work\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#BBBBBB`},children:` ephemeral`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`True`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B392F0`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`(ephemeral_files[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"paths\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`])`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`page `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` repo`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`list_files`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#BBBBBB`},children:` path`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"docs\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#BBBBBB`},children:` recursive`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`False`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#BBBBBB`},children:` limit`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#F8F8F8`},children:`100`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B392F0`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`(page[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"entries\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`], page.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`get`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"next_cursor\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#BBBBBB`},children:`))`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`21`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light min-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292e`,\"--shiki-dark\":`#b392f0`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:`// List files from the default branch`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`files, err `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`:=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` repo.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ListFiles`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(context.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`Background`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(), `}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`storage`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ListFilesOptions`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`\tRef: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"main\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`fmt.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`Println`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(files.Paths)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`ephemeral `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`:=`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6B737C`},children:`// List files from the ephemeral namespace`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`ephemeralFiles, err `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`:=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` repo.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ListFiles`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(context.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`Background`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(), `}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`storage`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ListFilesOptions`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`\tRef: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"feature/demo-work\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`\tEphemeral: `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`ephemeral,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`fmt.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`Println`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(ephemeralFiles.Paths)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`recursive `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`:=`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`page, err `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`:=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:` repo.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ListFiles`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(context.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`Background`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(), `}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`storage`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ListFilesOptions`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`\tPath: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#FFAB70`},children:`\"docs\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`\tRecursive: `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`recursive,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`\tLimit: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#F8F8F8`},children:`100`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`fmt.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`Println`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#B392F0`},children:`(page.Entries, page.NextCursor)`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsx(ParamField,{path:`ref`,type:`string`,id:`param-ref`,children:_jsx(_components.p,{children:`Branch name or commit SHA. Defaults to the default branch.`})}),`\n`,_jsx(ParamField,{path:`ephemeral`,type:`boolean`,id:`param-ephemeral`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, resolves the ref under the ephemeral namespace.`]})}),`\n`,_jsx(ParamField,{path:`path`,type:`string`,id:`param-path`,children:_jsxs(_components.p,{children:[`Repository-relative file or subtree to list. An exact file path returns that file as a single\n`,_jsx(_components.code,{children:`blob`}),` entry.`]})}),`\n`,_jsx(ParamField,{path:`recursive`,type:`boolean`,id:`param-recursive`,children:_jsxs(_components.p,{children:[`For subtree paths, when `,_jsx(_components.code,{children:`false`}),`, returns direct children of `,_jsx(_components.code,{children:`path`}),`.`]})}),`\n`,_jsx(ParamField,{path:`cursor`,type:`string`,id:`param-cursor`,children:_jsx(_components.p,{children:`Pagination cursor from a previous response.`})}),`\n`,_jsx(ParamField,{path:`limit`,type:`number`,id:`param-limit`,children:_jsx(_components.p,{children:`Maximum entries to return.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`paths`,type:`array`,id:`param-paths`,children:_jsx(_components.p,{children:`List of file paths in the repository`})}),`\n`,_jsx(ResponseField,{name:`ref`,type:`string`,id:`param-ref-1`,children:_jsx(_components.p,{children:`The resolved ref that was listed`})}),`\n`,_jsxs(ResponseField,{name:`entries`,type:`array`,id:`param-entries`,children:[_jsx(_components.p,{children:`Structured tree entries returned with the listing.`}),_jsxs(Expandable,{title:`entry fields`,children:[_jsx(ResponseField,{name:`entries[].path`,type:`string`,id:`param-entries-path`,children:_jsx(_components.p,{children:`Entry path relative to the repository root.`})}),_jsx(ResponseField,{name:`entries[].type`,type:`string`,id:`param-entries-type`,children:_jsxs(_components.p,{children:[`Entry type: `,_jsx(_components.code,{children:`blob`}),`, `,_jsx(_components.code,{children:`tree`}),`, `,_jsx(_components.code,{children:`symlink`}),`, or `,_jsx(_components.code,{children:`submodule`}),`.`]})}),_jsx(ResponseField,{name:`entries[].mode`,type:`string`,id:`param-entries-mode`,children:_jsx(_components.p,{children:`Git file mode.`})})]})]}),`\n`,_jsx(ResponseField,{name:`nextCursor`,type:`string`,id:`param-next-cursor`,children:_jsxs(_components.p,{children:[`Cursor for the next page. Python: `,_jsx(_components.code,{children:`next_cursor`}),`; Go: `,_jsx(_components.code,{children:`NextCursor`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`hasMore`,type:`boolean`,id:`param-has-more`,children:_jsxs(_components.p,{children:[`Whether additional pages are available. Python: `,_jsx(_components.code,{children:`has_more`}),`; Go: `,_jsx(_components.code,{children:`HasMore`}),`.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"min-dark"}},"config":{},"pageMetadata":{"title":"repo.listFiles()","description":"List all files in the repository at a specific ref.","href":"/sdk/repos/files-list","hidden":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Options","slug":"options","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pierrecomputercompany","siteName":"CODE STORAGE > DOCS","title":"repo.listFiles() - CODE STORAGE > DOCS","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T01:24:28.532Z","originalFileLocation":"sdk/repos/files-list.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"List all files in the repository at a specific ref.\">\u003cmeta data-mint-head name=\"keywords\" content=\"git infrastructure for agents, git infrastructure, git for ai agents, agent git, git storage, code storage, version control, git hosting, developer tools\">\u003cmeta data-mint-head name=\"application-name\" content=\"CODE STORAGE \u0026gt; DOCS\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex, nofollow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"repo.listFiles() - CODE STORAGE \u0026gt; DOCS\">\u003cmeta data-mint-head property=\"og:description\" content=\"List all files in the repository at a specific ref.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Code.Storage Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://code.storage/docs/sdk/repos/files-list\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://code.storage/assets/images/docs-og.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"repo.listFiles() - CODE STORAGE \u0026gt; DOCS\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"List all files in the repository at a specific ref.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://code.storage/assets/images/docs-og.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/pierrecomputercompany/-hp_JzGfQ_JMphKL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CODE STORAGE \u0026gt; DOCS\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#212121\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@pierredotco\">\u003cmeta data-mint-head name=\"author\" content=\"Pierre Computer Company, Inc.\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://code.storage/docs/sdk/repos/files-list\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/sdk/repos/files-list.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://code.storage/#organization\",\"name\":\"CODE STORAGE > DOCS\",\"url\":\"https://code.storage\"},{\"@type\":\"WebSite\",\"@id\":\"https://code.storage/docs#website\",\"name\":\"CODE STORAGE > DOCS\",\"url\":\"https://code.storage/docs\",\"publisher\":{\"@id\":\"https://code.storage/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://code.storage/docs/sdk/repos/files-list#webpage\",\"url\":\"https://code.storage/docs/sdk/repos/files-list\",\"name\":\"repo.listFiles()\",\"description\":\"List all files in the repository at a specific ref.\",\"dateModified\":\"2026-11-04T01:24:28.532Z\",\"isPartOf\":{\"@id\":\"https://code.storage/docs#website\"},\"breadcrumb\":{\"@id\":\"https://code.storage/docs/sdk/repos/files-list#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://code.storage/docs/sdk/repos/files-list#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Libraries\",\"item\":\"https://code.storage/docs/sdks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Storage SDK\",\"item\":\"https://code.storage/docs/sdk/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Repos\",\"item\":\"https://code.storage/docs/sdk/repos/note-append\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"repo.listFiles()\",\"item\":\"https://code.storage/docs/sdk/repos/files-list\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://code.storage/docs/sdk/repos/files-list#article\",\"headline\":\"repo.listFiles()\",\"name\":\"repo.listFiles()\",\"description\":\"List all files in the repository at a specific ref.\",\"url\":\"https://code.storage/docs/sdk/repos/files-list\",\"mainEntityOfPage\":{\"@id\":\"https://code.storage/docs/sdk/repos/files-list#webpage\"},\"image\":\"https://code.storage/assets/images/docs-og.png\",\"dateModified\":\"2026-11-04T01:24:28.532Z\",\"publisher\":{\"@id\":\"https://code.storage/#organization\"},\"isPartOf\":{\"@id\":\"https://code.storage/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CODE STORAGE > DOCS\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CODE STORAGE > DOCS\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/sdk/repos/files-list.md","siteName":"CODE STORAGE > DOCS","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/getting-started/introduction"},{"title":"Agent Setup","href":"/getting-started/agent-setup"},{"title":"Quick Start","href":"/getting-started/quick-start"}]},{"group":"Platform","pages":[{"title":"Organizations","href":"/platform/organizations"},{"title":"Authentication","href":"/platform/authentication"},{"group":"Repos","pages":[{"title":"Access \u0026 Permissions","href":"/repos/access"},{"title":"Git Operations","href":"/repos/git-operations"},{"title":"Git LFS","href":"/repos/git-lfs"},{"title":"Git Notes","href":"/repos/git-notes"},{"title":"Ref Policies","href":"/repos/ref-policies"},{"title":"Commit Signing","href":"/repos/commit-signing"},{"title":"Import Namespace","href":"/repos/imports"},{"title":"Ephemeral Namespace","href":"/repos/ephemeral-branches"},{"title":"Repository Forks","href":"/repos/forking"},{"title":"GitHub Sync","href":"/repos/github-sync"},{"title":"Generic Sync","href":"/repos/generic-sync"},{"title":"Webhooks","href":"/repos/webhooks"},{"title":"External Sandbox Integration","href":"/repos/external-sandboxes"}]}]},{"group":"Workflows","pages":[{"title":"Load Agent Memory","href":"/guides/agent-memory"},{"title":"Capture Agent State","href":"/guides/capture-agent-state"},{"title":"Restore Agent State","href":"/guides/restore-agent-state"},{"title":"Show Live Diffs","href":"/guides/live-diffs"},{"title":"Manage Product Files","href":"/guides/manage-product-files"},{"title":"Run Parallel Attempts","href":"/guides/parallel-attempts"},{"title":"Proxy Git with Your Own Auth","href":"/guides/proxy-git-with-your-own-auth"},{"title":"Export Your Repositories","href":"/guides/export-repositories"}]},{"group":"Libraries","pages":[{"title":"Pierre SDK","sidebarTitle":"SDK","href":"/sdks"},{"title":"CLI","description":"Install the pierre command, set up an account, and use Code Storage from a terminal, an agent, a CI job, or Git.","href":"/cli"},{"group":"Storage SDK","hidden":true,"pages":[{"title":"Storage SDK","description":"The simplest way to work with Code Storage. Generate authenticated URLs, create commits without git, stream file contents, and manage repositories—all from your application code.","href":"/sdk/overview"},{"group":"Repos","pages":[{"title":"repo.appendNote()","description":"Append content to an existing note (creates if it doesn't exist).","href":"/sdk/repos/note-append"},{"title":"repo.createBranch()","description":"Create a named or server-named branch from an existing revision.","href":"/sdk/repos/branch-create"},{"title":"repo.createCommit()","description":"Build and push a commit to a branch using the fluent commit builder.","href":"/sdk/repos/commit-pack"},{"title":"repo.createCommitFromDiff()","description":"Apply a pre-generated Git patch without constructing a builder.","href":"/sdk/repos/commit-create-from-diff"},{"title":"repo.createNote()","description":"Create a new note on a commit. Fails if a note already exists.","href":"/sdk/repos/note-create"},{"title":"repo.createTag()","description":"Create a lightweight tag pointing to a specific commit.","href":"/sdk/repos/tag-create"},{"title":"repo.deleteBranch()","description":"Delete a branch from the repository.","href":"/sdk/repos/branch-delete"},{"title":"repo.deleteNote()","description":"Remove a note from a commit.","href":"/sdk/repos/note-delete"},{"title":"repo.deleteTag()","description":"Delete a tag from the repository.","href":"/sdk/repos/tag-delete"},{"title":"repo.getArchiveStream()","description":"Download a repository archive as a streaming tar.gz response.","href":"/sdk/repos/archive"},{"title":"repo.getBlame()","description":"Show what revision and author last modified each line of a file.","href":"/sdk/repos/blame"},{"title":"repo.getBranchDiff()","description":"Get the diff between a branch and its base.","href":"/sdk/repos/branches-diff"},{"title":"repo.getCommit()","description":"Get metadata for a single commit without computing its diff.","href":"/sdk/repos/commit-get"},{"title":"repo.getCommitDiff()","description":"Get the diff for a specific commit.","href":"/sdk/repos/diff-get"},{"title":"repo.getEphemeralRemoteURL()","description":"Generate authenticated Git URLs that point to the +ephemeral namespace.","href":"/sdk/repos/ephemeral-remote-url-get"},{"title":"repo.getFileStream()","description":"Retrieve file content as a streaming response.","href":"/sdk/repos/file-get"},{"title":"repo.getImportRemoteURL()","description":"Generate authenticated Git URLs pointing to the +import namespace for bulk repository ingestion.","href":"/sdk/repos/import-remote-url-get"},{"title":"repo.getNote()","description":"Read a note attached to a specific commit.","href":"/sdk/repos/note-get"},{"title":"repo.getRemoteURL()","description":"Generate secure Git URLs with embedded JWT authentication.","href":"/sdk/repos/remote-url-get"},{"title":"repo.grep()","description":"Search for patterns within repository content using regular expressions.","href":"/sdk/repos/grep"},{"title":"repo.headFile()","description":"Inspect file metadata without downloading the file body.","href":"/sdk/repos/file-head"},{"title":"repo.listBranches()","description":"List all branches in the repository with pagination support.","href":"/sdk/repos/branches-list"},{"title":"repo.listCommits()","description":"List commit history with optional branch filtering.","href":"/sdk/repos/commits-list"},{"title":"repo.listFiles()","href":"/sdk/repos/files-list"},{"title":"repo.listFilesWithMetadata()","description":"List all files in the repository at a specific ref, with per-file git metadata.","href":"/sdk/repos/files-metadata-list"},{"title":"repo.listTags()","description":"List all tags in the repository with pagination support.","href":"/sdk/repos/tags-list"},{"title":"repo.merge()","description":"Merge one branch into another with merge, fast-forward-only, or fast-forward-preferred behavior.","href":"/sdk/repos/merge"},{"title":"repo.previewMerge()","description":"Preview whether a source branch can merge into a target branch without creating commits or updating refs.","href":"/sdk/repos/merge-preview"},{"title":"repo.pullUpstream()","description":"Force a pull from the configured upstream provider for a synced repository.","href":"/sdk/repos/upstream-pull"},{"title":"repo.restoreCommit()","description":"Create a commit rolling a branch back to a certain commit.","href":"/sdk/repos/commit-restore"},{"title":"store.createGitCredential()","description":"Store a Git credential for a repository configured with a generic HTTPS Git provider.","href":"/sdk/repos/git-credential-create"},{"title":"store.createRepo()","description":"Create a new repository with optional custom ID, default branch, Git Sync configuration, or a fork from an existing repository.","href":"/sdk/repos/repo-create"},{"title":"store.deleteGitCredential()","description":"Remove a stored Git credential from a repository.","href":"/sdk/repos/git-credential-delete"},{"title":"store.deleteRepo()","description":"Permanently delete a repository and all its contents.","href":"/sdk/repos/repo-delete"},{"title":"store.findOne()","description":"Find an existing repository by its ID.","href":"/sdk/repos/repo-get"},{"title":"store.listRepos()","description":"List all repositories in your organization with pagination support.","href":"/sdk/repos/repos-list"},{"title":"store.updateGitCredential()","description":"Update an existing Git credential for a repository.","href":"/sdk/repos/git-credential-update"}]}]},{"title":"Diffs","url":"https://diffs.com","description":null,"href":"/ui/diffs"},{"title":"Trees","url":"https://trees.software","href":"/ui/trees"}]},{"group":"API Reference","pages":[{"title":"Overview","href":"/api/overview"},{"group":"Metadata API","pages":[{"title":"meta.get","openapi":"openapi.json GET /api/meta","href":"/api/meta"}]},{"group":"Repos API","pages":[{"title":"repos.create","openapi":"openapi.json POST /api/repos","href":"/api/repos/repo-create"},{"title":"repos.delete","openapi":"openapi.json DELETE /api/repos/{repo_name}","href":"/api/repos/repo-delete"},{"title":"repos.get","openapi":"openapi.json GET /api/repos/{repo_name}","href":"/api/repos/repo-get"},{"title":"repos.grep","openapi":"openapi.json POST /api/repos/{repo_name}/grep","href":"/api/repos/grep"},{"title":"repos.list","openapi":"openapi.json GET /api/repos","href":"/api/repos/repos-list"},{"title":"repos.merge","openapi":"openapi.json POST /api/repos/{repo_name}/merge","href":"/api/repos/merge"},{"title":"repos.previewMerge","openapi":"openapi.json GET /api/repos/{repo_name}/merge/preview","href":"/api/repos/merge-preview"},{"title":"repos.update","openapi":"openapi.json PATCH /api/repos/{repo_name}","href":"/api/repos/repo-update"},{"title":"repos.archive.get","openapi":"openapi.json POST /api/repos/{repo_name}/archive","href":"/api/repos/archive"},{"title":"repos.blame.get","openapi":"openapi.json GET /api/repos/{repo_name}/blame","href":"/api/repos/blame"},{"title":"repos.branches.create","openapi":"openapi.json POST /api/repos/{repo_name}/branches/create","href":"/api/repos/branch-create"},{"title":"repos.branches.delete","openapi":"openapi.json DELETE /api/repos/{repo_name}/branches","href":"/api/repos/branch-delete"},{"title":"repos.branches.get","openapi":"openapi.json GET /api/repos/{repo_name}/branch","href":"/api/repos/branch-get"},{"title":"repos.branches.list","openapi":"openapi.json GET /api/repos/{repo_name}/branches","href":"/api/repos/branches-list"},{"title":"repos.commits.create","openapi":"openapi.json POST /api/repos/{repo_name}/commit-pack","playground":"simple","href":"/api/repos/commit-pack"},{"title":"repos.commits.createFromDiff","openapi":"openapi.json POST /api/repos/{repo_name}/diff-commit","playground":"simple","href":"/api/repos/commit-create-from-diff"},{"title":"repos.commits.get","openapi":"openapi.json GET /api/repos/{repo_name}/commit","href":"/api/repos/commit-get"},{"title":"repos.commits.list","openapi":"openapi.json GET /api/repos/{repo_name}/commits","href":"/api/repos/commits-list"},{"title":"repos.commits.restore","openapi":"openapi.json POST /api/repos/{repo_name}/restore-commit","playground":"simple","href":"/api/repos/commit-restore"},{"title":"repos.diff.get","openapi":"openapi.json GET /api/repos/{repo_name}/diff","href":"/api/repos/diff-get"},{"title":"repos.files.get","openapi":"openapi.json GET /api/repos/{repo_name}/file","href":"/api/repos/file-get"},{"title":"repos.files.list","openapi":"openapi.json GET /api/repos/{repo_name}/files","href":"/api/repos/files-list"},{"title":"repos.files.metadata.get","openapi":"/openapi.json HEAD /api/repos/{repo_name}/file","href":"/api/repos/file-head"},{"title":"repos.files.metadata.list","openapi":"openapi.json GET /api/repos/{repo_name}/files/metadata","href":"/api/repos/files-metadata-list"},{"title":"repos.gitCredentials.create","openapi":"openapi.json POST /api/repos/{repo_name}/git-credentials","href":"/api/repos/git-credential-create"},{"title":"repos.gitCredentials.delete","openapi":"openapi.json DELETE /api/repos/{repo_name}/git-credentials/{git_credential_id}","href":"/api/repos/git-credential-delete"},{"title":"repos.gitCredentials.update","openapi":"openapi.json PUT /api/repos/{repo_name}/git-credentials/{git_credential_id}","href":"/api/repos/git-credential-update"},{"title":"repos.notes.append","openapi":"openapi.json POST /api/repos/{repo_name}/notes/append","href":"/api/repos/note-append"},{"title":"repos.notes.create","openapi":"openapi.json POST /api/repos/{repo_name}/notes","href":"/api/repos/note-create-or-append"},{"title":"repos.notes.delete","openapi":"openapi.json DELETE /api/repos/{repo_name}/notes","href":"/api/repos/note-delete"},{"title":"repos.notes.get","openapi":"openapi.json GET /api/repos/{repo_name}/notes","href":"/api/repos/note-get"},{"title":"repos.notes.refs.list","openapi":"openapi.json GET /api/repos/{repo_name}/notes/refs","href":"/api/repos/notes-refs-list"},{"title":"repos.tags.create","openapi":"openapi.json POST /api/repos/{repo_name}/tags","href":"/api/repos/tag-create"},{"title":"repos.tags.delete","openapi":"openapi.json DELETE /api/repos/{repo_name}/tags/{tag_name}","href":"/api/repos/tag-delete"},{"title":"repos.tags.get","openapi":"openapi.json GET /api/repos/{repo_name}/tag","href":"/api/repos/tag-get"},{"title":"repos.tags.list","openapi":"openapi.json GET /api/repos/{repo_name}/tags","href":"/api/repos/tags-list"},{"title":"repos.upstream.delete","openapi":"openapi.json DELETE /api/repos/{repo_name}/upstream","href":"/api/repos/repo-base-delete"},{"title":"repos.upstream.pull","openapi":"openapi.json POST /api/repos/{repo_name}/upstream/pull","href":"/api/repos/upstream-pull"}]},{"group":"Legacy Storage API","hidden":true,"pages":[{"title":"Repos: List","openapi":"openapi.json get /api/v1/repos","href":"/reference/api/repositories/list-repos-1"},{"title":"Repo: Create","openapi":"openapi.json post /api/v1/repos","href":"/reference/api/repositories/create-repo-1"},{"title":"Repo: Get","openapi":"openapi.json get /api/v1/repo","href":"/reference/api/repositories/get-repo-1"},{"title":"Repo: Update","openapi":"openapi.json patch /api/v1/repo","href":"/reference/api/repositories/update-repository-settings-1"},{"title":"Repo: Delete","openapi":"openapi.json delete /api/v1/repos/delete","href":"/reference/api/repositories/delete-repo-1"},{"title":"Repo Base: Delete","openapi":"openapi.json delete /api/v1/repos/base","href":"/reference/api/repositories/unset-base-repo-1"},{"title":"Upstream: Pull","openapi":"openapi.json post /api/v1/repos/pull-upstream","href":"/reference/api/repositories/pull-upstream-1"},{"title":"Git Credential: Create","openapi":"openapi.json post /api/v1/repos/git-credentials","href":"/reference/api/repositories/create-git-credential-1"},{"title":"Git Credential: Update","openapi":"openapi.json put /api/v1/repos/git-credentials","href":"/reference/api/repositories/update-git-credential-1"},{"title":"Git Credential: Delete","openapi":"openapi.json delete /api/v1/repos/git-credentials","href":"/reference/api/repositories/delete-git-credential-1"},{"title":"Branches: List","openapi":"openapi.json get /api/v1/repos/branches","href":"/reference/api/branches/list-branches-1"},{"title":"Branch: Create","openapi":"openapi.json post /api/v1/repos/branches/create","href":"/reference/api/branches/create-branch-1"},{"title":"Branch: Delete","openapi":"openapi.json delete /api/v1/repos/branches","href":"/reference/api/branches/delete-branch-1"},{"title":"Branches: Diff","openapi":"openapi.json get /api/v1/repos/branches/diff","href":"/reference/api/commits/get-branch-diff-1"},{"title":"Merge","openapi":"openapi.json post /api/v1/repos/merge","href":"/reference/api/branches/merge-branch-1"},{"title":"Merge: Preview","openapi":"openapi.json get /api/v1/repos/merge/preview","href":"/reference/api/branches/preview-merge-1"},{"title":"Commits: List","openapi":"openapi.json get /api/v1/repos/commits","href":"/reference/api/commits/list-commits-1"},{"title":"Commit: Get","openapi":"openapi.json get /api/v1/repos/commit","href":"/reference/api/commits/get-commit-1"},{"title":"Commit: Pack","openapi":"openapi.json post /api/v1/repos/commit-pack","playground":"simple","href":"/reference/api/commits/create-commit-from-files-1"},{"title":"Commit: Restore","openapi":"openapi.json post /api/v1/repos/restore-commit","playground":"simple","href":"/reference/api/commits/restore-commit-1"},{"title":"Commits: Reset","openapi":"openapi.json post /api/v1/repos/reset-commits","playground":"simple","href":"/reference/api/commits/reset-branch-to-commit-1"},{"title":"Diff: Get","openapi":"openapi.json get /api/v1/repos/diff","href":"/reference/api/commits/get-commit-diff-1"},{"title":"Commit: Create from Diff","openapi":"openapi.json post /api/v1/repos/diff-commit","playground":"simple","href":"/reference/api/commits/create-commit-from-diff-1"},{"title":"Files: List","openapi":"openapi.json get /api/v1/repos/files","href":"/reference/api/files/list-files-1"},{"title":"Files Metadata: List","openapi":"openapi.json get /api/v1/repos/files/metadata","href":"/reference/api/files/list-files-with-metadata-1"},{"title":"File: Get","openapi":"openapi.json get /api/v1/repos/file","href":"/reference/api/files/get-file-1"},{"title":"File: Head","openapi":"/openapi.json head /api/v1/repos/file","href":"/reference/api/files/get-file-headers-1"},{"title":"Archive","openapi":"openapi.json post /api/v1/repos/archive","href":"/reference/api/files/archive-1"},{"title":"Grep","openapi":"openapi.json post /api/v1/repos/grep","href":"/reference/api/files/grep-1"},{"title":"Blame","openapi":"openapi.json get /api/v1/repos/blame","href":"/reference/api/files/blame-1"},{"title":"Tags: List","openapi":"openapi.json get /api/v1/repos/tags","href":"/reference/api/tags/list-tags-1"},{"title":"Tag: Create","openapi":"openapi.json post /api/v1/repos/tags","href":"/reference/api/tags/create-tag-1"},{"title":"Tag: Delete","openapi":"openapi.json delete /api/v1/repos/tags","href":"/reference/api/tags/delete-tag-1"},{"title":"Note: Get","openapi":"openapi.json get /api/v1/repos/notes","href":"/reference/api/notes/get-note-1"},{"title":"Note: Create or Append","openapi":"openapi.json post /api/v1/repos/notes","href":"/reference/api/notes/create-or-append-note-1"},{"title":"Note: Delete","openapi":"openapi.json delete /api/v1/repos/notes","href":"/reference/api/notes/delete-note-1"},{"title":"Notes Refs: List","openapi":"openapi.json get /api/v1/repos/notes/refs","href":"/reference/api/notes/list-notes-refs-1"}]}]}]},"basePath":"","title":"repo.listFiles() - CODE STORAGE > DOCS","deploymentId":"dpl_J2QdBVuN65x4CCtpqPb371YPt4xi","buildId":"dpl_J2QdBVuN65x4CCtpqPb371YPt4xi","dynamics":[],"chunks":[]}