Commit graph

14 commits

Author SHA1 Message Date
Darshanx256
149ac3e674 LibFileSystem: Preserve copy flags when recursing into directories 2026-04-13 12:00:52 +02:00
Shannon Booth
80541c775d LibFileSystem: Remove unneeded is_null check for StringView 2026-03-31 13:48:50 +01:00
R-Goc
57b12d3ca0 LibCore: Remove LibCoreMinimal 2026-02-26 18:31:57 +01:00
Shannon Booth
b7a5666795 LibFileSystem: Remove unused TempFile class
While this is useful for tests, we should really be avoiding it
in 'proper' code as it suffers from TOCTOU issues. Since it is
unused, let's just remove it.
2026-02-14 10:25:33 -05:00
Timothy Flynn
551b82ae0b LibFileSystem: Add a method to query disk space stats
This returns the amount of free and total disk space for the partition
of a provided path.
2026-02-13 10:20:52 -05:00
ayeteadoe
25f5936dee CMake: Rename serenity_* helper functions/macros to ladybird_* 2025-07-03 23:19:41 +02:00
Timothy Flynn
dceed08058 AK+LibCore: Avoid double-negation of syscall error values
This is a remnant from SerenityOS. Let's avoid confusion as to why we
negate errno when we call Error::from_syscall just to negate it again
when we store the error code.
2025-05-10 21:19:46 -04:00
stasoid
fe43712e72 LibCore: Add S_ISDIR, S_ISREG to System.h on Windows
Before this commit, LibCore/System.h exposed only part of
System::stat API on Windows. Namely, users of Core::System::stat
had to #include <dirent.h> in order to check the return value of stat.
It is OK for low-level libs like LibCore/LibFileSystem, but
S_ISDIR is also used in LibWeb\Loader\GeneratedPagesLoader.cpp.
We want to avoid platform #ifdefs in LibWeb.
2025-02-12 18:42:05 -07:00
Timothy Flynn
27478ec7d4 Everywhere: Run clang-format
The following command was used to clang-format these files:

    clang-format-19 -i $(find . \
        -not \( -path "./\.*" -prune \) \
        -not \( -path "./Build/*" -prune \) \
        -not \( -path "./Toolchain/*" -prune \) \
        -type f -name "*.cpp" -o -name "*.mm" -o -name "*.h")
2024-12-28 05:39:32 -08:00
Pavel Shliak
d55caff227 LibFileSystem: Fix Windows build
This reverts part of  b3c253e50f
2024-11-21 11:15:49 +01:00
Pavel Shliak
b3c253e50f LibFileSystem: Clean up #include directives
This change aims to improve the speed of incremental builds.
2024-11-20 15:17:53 +01:00
stasoid
33e7d6121b LibFileSystem: Port to Windows 2024-11-19 14:35:52 -07:00
stasoid
d87144fde2 LibFileSystem: Remove some unused functions 2024-11-19 14:35:52 -07:00
Timothy Flynn
93712b24bf Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00