#####  [ cppreference.com ](/)

[ Log in ](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Ffilesystem
"You are encouraged to log in; however, it is not mandatory \[o\]")

#####  Namespaces

  * [ Page ](/w/cpp/filesystem "View the content page \[c\]")
  * [ Discussion ](/mwiki/index.php?title=Talk:cpp/filesystem&action=edit&redlink=1 "Discussion about the content page \[t\]")

#####  Variants

#####  Views

  * [ View ](/w/cpp/filesystem)
  * [ Edit ](/mwiki/index.php?title=cpp/filesystem&action=edit "You can edit this page. Please use the preview button before saving \[e\]")
  * [ History ](/mwiki/index.php?title=cpp/filesystem&action=history "Past revisions of this page \[h\]")

#####  Actions

#  Filesystem library  (since C++17)

From cppreference.com

< [ cpp ](/w/cpp "cpp")

[ C++ ](/w/cpp "cpp")

[ Compiler support ](/w/cpp/compiler_support "cpp/compiler support")  
---  
[ Freestanding and hosted ](/w/cpp/freestanding "cpp/freestanding")  
[ Language ](/w/cpp/language "cpp/language")  
[ Standard library ](/w/cpp/standard_library "cpp/standard library")  
[ Standard library headers ](/w/cpp/header "cpp/header")  
[ Named requirements ](/w/cpp/named_req "cpp/named req")  
[ Feature test macros ](/w/cpp/feature_test "cpp/feature test") (C++20)  
[ Language support library ](/w/cpp/utility#Language_support "cpp/utility")  
[ Concepts library ](/w/cpp/concepts "cpp/concepts") (C++20)  
[ Metaprogramming library ](/w/cpp/meta "cpp/meta") (C++11)  
[ Diagnostics library ](/w/cpp/error "cpp/error")  
[ General utilities library ](/w/cpp/utility "cpp/utility")  
[ Strings library ](/w/cpp/string "cpp/string")  
[ Containers library ](/w/cpp/container "cpp/container")  
[ Iterators library ](/w/cpp/iterator "cpp/iterator")  
[ Ranges library ](/w/cpp/ranges "cpp/ranges") (C++20)  
[ Algorithms library ](/w/cpp/algorithm "cpp/algorithm")  
[ Numerics library ](/w/cpp/numeric "cpp/numeric")  
[ Localizations library ](/w/cpp/locale "cpp/locale")  
[ Input/output library ](/w/cpp/io "cpp/io")  
**Filesystem library** (C++17)  
[ Regular expressions library ](/w/cpp/regex "cpp/regex") (C++11)  
[ Concurrency support library ](/w/cpp/thread "cpp/thread") (C++11)  
[ Technical specifications ](/w/cpp/experimental "cpp/experimental")  
[ Symbols index ](/w/cpp/symbol_index "cpp/symbol index")  
[ External libraries ](/w/cpp/links/libs "cpp/links/libs")  
  
[ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/navbar_content&action=edit)

**Filesystem library**

Classes  
---  
|  [ filesystem::path  ](/w/cpp/filesystem/path "cpp/filesystem/path")  
---  
[ filesystem::filesystem_error  ](/w/cpp/filesystem/filesystem_error
"cpp/filesystem/filesystem error")  
[ filesystem::directory_entry  ](/w/cpp/filesystem/directory_entry
"cpp/filesystem/directory entry")  
[ filesystem::directory_iterator  ](/w/cpp/filesystem/directory_iterator
"cpp/filesystem/directory iterator")  
[ filesystem::recursive_directory_iterator
](/w/cpp/filesystem/recursive_directory_iterator "cpp/filesystem/recursive
directory iterator")  
[ filesystem::file_status  ](/w/cpp/filesystem/file_status
"cpp/filesystem/file status")  
  
|  [ filesystem::space_info  ](/w/cpp/filesystem/space_info
"cpp/filesystem/space info")  
---  
[ filesystem::file_type  ](/w/cpp/filesystem/file_type "cpp/filesystem/file
type")  
[ filesystem::perms  ](/w/cpp/filesystem/perms "cpp/filesystem/perms")  
[ filesystem::perm_options  ](/w/cpp/filesystem/perm_options
"cpp/filesystem/perm options")  
[ filesystem::copy_options  ](/w/cpp/filesystem/copy_options
"cpp/filesystem/copy options")  
[ filesystem::directory_options  ](/w/cpp/filesystem/directory_options
"cpp/filesystem/directory options")  
[ filesystem::file_time_type  ](/w/cpp/filesystem/file_time_type
"cpp/filesystem/file time type")  
  
Functions  
|  [ filesystem::absolute  ](/w/cpp/filesystem/absolute
"cpp/filesystem/absolute")  
---  
[ filesystem::canonical  filesystem::weakly_canonical
](/w/cpp/f