Peter Bieringer
a6d7fcf1b9
storage/detect+test file systems with collision: fix to catch HFS+ (MacOS)
2026-04-14 20:45:04 +02:00
Peter Bieringer
c7625650c1
storage/pathutils: temp test
2026-04-14 20:45:04 +02:00
Peter Bieringer
07e3a2cbad
pathutils: add tests for symlink support or collision-free folder and improve path_to_filesystem
2026-04-14 20:45:04 +02:00
Peter Bieringer
c4ab681858
Fix: performance improvement of path_to_filesystem() in 3.7.0 caused unexpected issue in case of softlinks are used
2026-04-11 06:46:56 +02:00
Peter Bieringer
876c029056
pathutils: add size check function
2026-03-26 07:54:18 +01:00
Peter Bieringer
0be7b620c9
Improve path collision check formatting
...
Refactor path collision check for readability.
2026-03-01 09:00:16 +01:00
Peter Bieringer
770cb31e7a
Remove unused variable safe_path_parent
...
Remove unused variable safe_path_parent
2026-03-01 08:56:38 +01:00
Peter Bieringer
8121ec0a84
Fix indentation for raising CollidingPathError
2026-03-01 08:54:32 +01:00
Francois Lesueur
d3018a4c06
improve path_to_filesystem() performance
2026-02-27 15:04:00 +01:00
Peter Bieringer
be16a41681
extend copyright
2026-02-22 12:24:28 +01:00
Peter Bieringer
3eb1669bde
add new function (common used): parent_path
2026-02-22 12:23:59 +01:00
Tobias Brox
0388051046
Fix unclosed scandir iterator in path_to_filesystem
...
Use os.scandir() as a context manager to ensure the iterator is
properly closed. This fixes ResourceWarning: unclosed scandir iterator
that occurs when the iterator is garbage collected without being closed.
Fixes #1972
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-23 17:02:14 +01:00
Peter Bieringer
ca3fd9a3ff
Improve: user/group retrievement for running service and directories
2025-09-01 20:31:23 +02:00
David Fernandez Alcoba
550f522e9d
Fix broken start when UID does not exist
2025-08-29 13:00:23 +02:00
Peter Bieringer
a4698a4475
catch next windows related issue
2025-06-29 09:35:47 +02:00
Peter Bieringer
995eeaf2d0
extend copyright
2025-06-29 08:35:52 +02:00
Peter Bieringer
5582112029
add support functions for retrieving path owner/group/permissions
2025-06-29 08:32:07 +02:00
Unrud
3c218ecd9c
Windows: Block alternate data streams
2022-03-30 22:27:05 +02:00
Unrud
4d4c3bda75
Fix F_FULLFSYNC on PyPy + Fallback if unsupported
2022-02-03 14:36:53 +01:00
Unrud
7e29d9b5c3
Revert "Assume F_FULLFSYNC on darwin"
2022-02-01 20:24:22 +01:00
Unrud
cd5bc3590f
Assume F_FULLFSYNC on darwin
2022-02-01 19:14:40 +01:00
Unrud
0221fc357b
Use sys.platform instead of os.name
...
mypy only recognizes sys.platform
2022-02-01 17:56:02 +01:00
Unrud
523960bc9f
Fix Mypy error
2022-02-01 16:19:51 +01:00
Unrud
45ff34f6c3
Fallback if RENAME_EXCHANGE not supported by fs
...
Fixes #1213
2022-02-01 11:28:40 +01:00
Unrud
7bfb6c0132
Fix dlopen on Android
2021-12-25 19:58:29 +01:00
Unrud
bbaf0ebd8c
Change name in file header
2021-12-09 16:55:46 +01:00
Unrud
cecb17df03
More type hints
2021-09-26 22:24:45 +02:00
Unrud
73e42f8101
Enable static type checking
2021-09-26 22:24:45 +02:00
Unrud
2aafcd5df5
Use renameat2 on Linux for atomic exchanging of files
2020-10-23 21:37:45 +02:00
Unrud
f05251bd01
Improve error messages for locking problems on Windows
2020-10-23 21:20:16 +02:00
Unrud
88a0af8ba1
Improve documentation
2020-01-12 23:32:28 +01:00
Unrud
63e6d091b9
Update copyright
2019-06-17 04:13:24 +02:00
Unrud
14b46c04bf
Create configuration for isort
2019-06-15 09:01:55 +02:00
Unrud
9c802e0f57
skip ambiguous isort modules
2018-09-05 11:37:18 +02:00
Unrud
35484c9b79
Refactor multifilesystem
2018-09-04 03:33:50 +02:00
Unrud
5e0a387ed9
remove whitespace before email
2018-09-04 03:33:47 +02:00
Unrud
5429f5c1a9
assert sanitized and stripped paths
2018-08-28 16:19:50 +02:00
Unrud
8869b34470
refactor
2018-08-28 16:19:43 +02:00
Guillaume Ayoub
b495bfa59f
Remove pathutils
2016-04-09 22:45:14 +02:00
Guillaume Ayoub
12ddd64884
Fix the management of paths
2016-04-09 22:44:34 +02:00
Guillaume Ayoub
1001bcb676
Remove extra auth, rights and storage modules
2016-04-07 19:02:52 +02:00
Guillaume Ayoub
434cb533e9
Remove Python 2 support
2016-03-31 19:57:40 +02:00
Guillaume Ayoub
e7ce00d54f
Style
2015-12-31 12:49:41 +01:00
Unrud
eed37792ae
Convert filesystem paths safely to paths
...
This only becomes a problem if the OS/filesystem
allows / in filenames or . respectively
.. as filenames.
2015-12-24 14:39:29 +01:00
Unrud
b4b3d51f33
Convert paths safely to file system paths
...
With the old implementation on Windows a path like
"/c:/file/ignore" got converted to "c:\file" and
allowed access to files outside of FOLDER
2015-12-24 14:39:29 +01:00
Unrud
1ad994cadf
Move sanitize_path into pathutils.py
2015-12-24 14:39:15 +01:00