aboutsummaryrefslogtreecommitdiff
path: root/weed/util/fullpath.go
AgeCommit message (Collapse)AuthorFilesLines
2025-12-05fix: normalize Windows backslash paths in weed admin file uploads (#7636)Chris Lu1-0/+13
fix: normalize Windows backslash paths in file uploads When uploading files from a Windows client to a Linux server, file paths containing backslashes were not being properly interpreted as directory separators. This caused files intended for subdirectories to be created in the root directory with backslashes in their filenames. Changes: - Add util.CleanWindowsPath and util.CleanWindowsPathBase helper functions in weed/util/fullpath.go for reusable path normalization - Use path.Join/path.Clean/path.Base instead of filepath equivalents for URL path semantics (filepath is OS-specific) - Apply normalization in weed admin handlers and filer upload parsing Fixes #7628
2025-07-20Read write directory object (#7003)Chris Lu1-0/+1
* read directory object * address comments * address comments * name should not have "/" prefix * fix compilation * refactor
2023-10-12 fix: disallow file name too long when writing a file (#4881)Konstantin Lebedev1-0/+7
* fix: disallow file name too long when writing a file * bool LongerName to MaxFilenameLength --------- Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
2022-08-07refactor and fix strings.Splitchrislu1-1/+1
2022-08-07filer.sync: parallelize the filer.syncchrislu1-0/+8
2022-08-07filer.sync: fix when excluded paths is emptychrislu1-0/+6
2022-03-14generate inode via path and timechrislu1-23/+2
2022-01-12POSIX: differentiate device and char devicechrislu1-1/+5
2022-01-12POSIX: different inode for same named different file typeschrislu1-5/+19
2022-01-11POSIX: ensure file and directory inodes are differentchrislu1-2/+8
this is just an in memory representation. POSIX wants different inode numbers for the same named file or directory.
2021-08-15shell: add "remote.meta.sync"Chris Lu1-2/+6
2020-09-26avoid non utf-8 in filenameChris Lu1-0/+2
fix https://github.com/chrislusf/seaweedfs/issues/1493
2020-04-05refactoringChris Lu1-3/+7
2020-04-05add util.PathJoinChris Lu1-0/+4
2020-03-26go fmtChris Lu1-1/+1
2020-03-25fix fscache moveChris Lu1-0/+8
2020-03-23refactoringChris Lu1-0/+40