diff --git a/Userland/Libraries/LibCore/Directory.cpp b/Userland/Libraries/LibCore/Directory.cpp index 32725992e2..a51531819d 100644 --- a/Userland/Libraries/LibCore/Directory.cpp +++ b/Userland/Libraries/LibCore/Directory.cpp @@ -61,7 +61,7 @@ ErrorOr Directory::create(LexicalPath path, CreateDirectories create_ ErrorOr Directory::ensure_directory(LexicalPath const& path) { - if (path.basename() == "/") + if (path.basename() == "/" || path.basename() == ".") return {}; TRY(ensure_directory(path.parent()));