{"Entry":{"collection":"func","key":"pg-ls-dir","name":"pg_ls_dir","aliases":[],"metadata":{"changed_in":["9.5"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.0","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.1"},{"descriptions_changed":false,"doc_overhaul":false,"from":"9.4","group_changed":null,"signatures":{"added":["pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean] ) → setof text"],"removed":["pg_ls_dir ( dirname text ) → setof text"]},"status":"changed","to":"9.5"},{"descriptions_changed":true,"doc_overhaul":false,"from":"10","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"11"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"9b1bca434d0f59af55d1cf652bc8891fe63750bbe6334e7ed84d6520d2b7dae7","first_version":"8.1","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.573438+08:00","last_version":"20","name":"pg_ls_dir","name_key":"pg_ls_dir","position":29062,"present_in":["8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean ] ) → setof text","signature_count":1,"slug":"pg-ls-dir","source_rev":"b7bd9cda","summary":"Returns the names of all files (and directories and other special files) in the specified directory.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-ls-dir","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-ls-dir","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the names of all files (and directories and other special files) in the specified directory. The include_dot_dirs parameter indicates whether “.” and “..” are to be included in the result set; the default is to exclude them. Including them can be useful when missing_ok is true, to distinguish an empty directory from a non-existent directory.","description_html":"Returns the names of all files (and directories and other special files) in the specified directory. The \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e parameter indicates whether \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e and \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e are to be included in the result set; the default is to exclude them. Including them can be useful when \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e is \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, to distinguish an empty directory from a non-existent directory.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-ADMIN-GENFILE-TABLE","file":"functions-admin.html","slug":"18"},"group":"admin","group_label":"System Administration Functions","lang":"en","layout":"table-new","pages":["functions-admin.html"],"prose_only":false,"signatures":[{"description":"Returns the names of all files (and directories and other special files) in the specified directory. The include_dot_dirs parameter indicates whether “.” and “..” are to be included in the result set; the default is to exclude them. Including them can be useful when missing_ok is true, to distinguish an empty directory from a non-existent directory.","description_html":"Returns the names of all files (and directories and other special files) in the specified directory. The \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e parameter indicates whether \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e and \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e are to be included in the result set; the default is to exclude them. Including them can be useful when \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e is \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, to distinguish an empty directory from a non-existent directory.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_ls_dir\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003edirname\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003esetof text\u003c/code\u003e","returns":"setof text","text":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean ] ) → setof text","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-GENFILE-TABLE","file":"functions-admin.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-ls-dir","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_ls_dir","Summary":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。include_dot_dirs参数指示结果集中是否包含“.”和“..”；默认不包含它们。在missing_ok为 true时，包含它们有助于区分不存在的目录和空目录。","BodyHTML":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。\u003cem\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e参数指示结果集中是否包含\u003cspan\u003e“\u003cspan\u003e.\u003c/span\u003e”\u003c/span\u003e和\u003cspan\u003e“\u003cspan\u003e..\u003c/span\u003e”\u003c/span\u003e；默认不包含它们。在\u003cem\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e为 \u003ccode\u003etrue\u003c/code\u003e时，包含它们有助于区分不存在的目录和空目录。\u003cpre\u003epg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean ] ) → setof text\u003c/pre\u003e返回指定目录中所有文件的名称（包括目录及其他特殊文件）。\u003cem\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e参数指示结果集中是否包含\u003cspan\u003e“\u003cspan\u003e.\u003c/span\u003e”\u003c/span\u003e和\u003cspan\u003e“\u003cspan\u003e..\u003c/span\u003e”\u003c/span\u003e；默认不包含它们。在\u003cem\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e为 \u003ccode\u003etrue\u003c/code\u003e时，包含它们有助于区分不存在的目录和空目录。","SourceRevision":"1b5ca64c","ContentHash":"870603367151912aa458708c71a40ef96f333a6e496401996ecbe731b1338e43","Payload":{"description_zh":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。include_dot_dirs参数指示结果集中是否包含“.”和“..”；默认不包含它们。在missing_ok为 true时，包含它们有助于区分不存在的目录和空目录。","description_zh_html":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。\u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e参数指示结果集中是否包含\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e和\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e；默认不包含它们。在\u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e为 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e时，包含它们有助于区分不存在的目录和空目录。","signatures":[{"description_zh":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。include_dot_dirs参数指示结果集中是否包含“.”和“..”；默认不包含它们。在missing_ok为 true时，包含它们有助于区分不存在的目录和空目录。","description_zh_html":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。\u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e参数指示结果集中是否包含\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e和\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e；默认不包含它们。在\u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e为 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e时，包含它们有助于区分不存在的目录和空目录。","returns":"setof text","text":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean ] ) → setof text","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"fea5700dcfad9822631e0f90bf1817a81b363b17e4ec489d8cdf1c72ee69f476","Text":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean ] ) → setof text","Returns":"setof text","Payload":{"description":"Returns the names of all files (and directories and other special files) in the specified directory. The include_dot_dirs parameter indicates whether “.” and “..” are to be included in the result set; the default is to exclude them. Including them can be useful when missing_ok is true, to distinguish an empty directory from a non-existent directory.","description_html":"Returns the names of all files (and directories and other special files) in the specified directory. The \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e parameter indicates whether \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e and \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e are to be included in the result set; the default is to exclude them. Including them can be useful when \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e is \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, to distinguish an empty directory from a non-existent directory.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_ls_dir\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003edirname\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003esetof text\u003c/code\u003e","returns":"setof text","text":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean ] ) → setof text","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
