Commit Graph

48 Commits

Author SHA1 Message Date
feiniks
9ab77f59d2
Fix free path twice (#2680)
Co-authored-by: heran yang <heran.yang@seafile.com>
2023-06-07 10:00:31 +08:00
feiniks
d315935dc1
free the path when failed to mkdir (#2365) 2020-08-18 11:25:07 +08:00
feiniks
8db7f48dde
support checkout paths of any length (#2364) 2020-08-18 11:01:24 +08:00
caixiangyue
2055046a15 fixed compilation warning 2019-11-05 16:07:51 +08:00
caixiangyue
ec3ea3cf35 add block_size configuration 2019-09-20 15:02:22 +08:00
Jonathan Xu
4b9678eb68 Fix .eml file cannot be deleted problem. 2018-06-28 10:45:39 +08:00
Jonathan Xu
79aba80c85 [Mac] Delay updates to opened MS Office files. 2018-06-27 15:40:13 +08:00
Jonathan Xu
2d67426c03 Remove dependency to ccnet. 2018-06-26 12:23:36 +08:00
Jonathan Xu
c44e3ee507 Check result of g_utf16_to_utf8() when converting filenames from filesystem. 2018-02-13 11:41:44 +08:00
Jonathan Xu
31dcd9283a Use 8MB as average block size.
And be compatible with files chunked with the old block size.
2017-06-30 16:30:52 +08:00
Jonathan Xu
0e181b58e2 Some BSD compile fixes.
Thanks to Daniel Ölschlegel <amoibos@gmail.com>.
2016-12-27 18:48:56 +08:00
Jiaqiang Xu
76220e5a4d Don't generate case conflict files. 2016-12-03 11:03:27 +08:00
Jiaqiang Xu
8b5d724c14 Prevent from generating too many case conflict files. 2016-06-24 17:05:07 +08:00
Jiaqiang Xu
d8bd9e24d0 [client] Fix compile warnings on Windows. 2016-03-02 11:48:12 +08:00
Jiaqiang Xu
fb1a3ebf61 [client] Close directory handle after checking folder lock. 2015-11-24 17:00:44 +08:00
Jiaqiang Xu
627f526767 [client] Don't conflict when a locked file is opened by Office. 2015-11-13 16:46:02 +08:00
Jiaqiang Xu
b940288081 Improve log messages.
- Replace all g_warning() with seaf_warning()
- Print repo id when access to commit/fs/block fails
2015-06-30 20:25:07 +08:00
Jiaqiang Xu
9838f69417 [client] Fix conflict handling bug in clone.
A conflict file cannot be produced.
2015-04-02 18:55:48 +08:00
Jiaqiang Xu
bcf2347a00 [client] Check locked sub-folder before removing a folder. 2015-04-01 14:20:10 +08:00
Jiaqiang Xu
e845e3f6c0 [win] Handle delete/rename events with 8.3 format paths. 2015-01-21 15:01:32 +08:00
Jiaqiang Xu
97175222b2 [win] Use native API for I/O operations to support long path. 2015-01-19 11:36:24 +08:00
Jiaqiang Xu
ffe1995e81 [client] Minor improvements to locked file handling.
* Don't load locked file set on Linux/Mac.
* Use dedicated sync error message for locked file.
2014-12-13 13:34:08 +08:00
Jiaqiang Xu
a5d759004f [client] Fix delete folder bug. 2014-11-14 14:46:11 +08:00
Jiaqiang Xu
2c4a44c67d [client] Fix case rename bug and remove ignored hidden files when delete empty dir. 2014-11-13 14:09:59 +08:00
Jiaqiang Xu
e70b8c4fbd [win] Skip syncing when a file needs to be updated is locked. 2014-07-21 15:08:18 +08:00
Jiaqiang Xu
34b192c3f0 New sync loop implementation, download part. 2014-07-21 15:08:17 +08:00
Jiaqiang Xu
2983357dfb Use JSON for fs object format and store modifier, size, mtime in direcotry objects. 2014-03-25 09:49:12 +08:00
Jiaqiang Xu
63d486979f Change data model. 2014-03-13 17:13:30 +08:00
Jiaqiang Xu
50cf8afb73 Don't download history commit and fs objects. 2014-01-14 13:45:04 +08:00
Jiaqiang Xu
342f4a6c4e [client] Remove redundant log messages. 2013-12-25 10:23:00 +08:00
Jiaqiang Xu
228c8b30c9 [client] Handle minor bug when deleting empty dir. 2013-12-24 15:10:09 +08:00
Jiaqiang Xu
085c1e987e [client] Fix a file descriptor leak. 2013-11-07 09:47:43 +08:00
Jiaqiang Xu
1a2a457745 [client] Sync empty folders. 2013-10-15 16:14:58 +08:00
Jiaqiang Xu
a22c8ea91c Remove assertions. 2013-09-22 10:15:36 +08:00
Jiaqiang Xu
65c543c4dd [client] Create conflict file if local file was changed during checkout. 2013-06-06 20:27:20 +08:00
Jiaqiang Xu
a1a7d89dc7 [Mac] Fix an UTF-8 encoding problem. 2013-05-15 10:12:07 +08:00
Jiaqiang Xu
8df9c8c2ef [client] Improve case conflict handling. 2013-04-27 14:25:51 +08:00
Jiaqiang Xu
dc1308a14b [client] Fix a few bugs. 2013-04-26 11:35:06 +08:00
Jiaqiang Xu
8cdf56bfaa [client] Don't delete file from repo if failed to check it out. 2013-04-12 10:37:53 +08:00
Jiaqiang Xu
6e19f5aa44 [client] Improve error handling of merge. 2013-03-25 10:49:52 +08:00
Jiaqiang Xu
9b689ddd1b [win] Fix bug of handling files larger than 4GB.
g_lstat() returns 32-bit struct stat on Windows, use _wstat64() instead.
2012-12-30 10:59:50 +08:00
Jiaqiang Xu
fb488abe71 [win] Replace PATH_MAX with SEAF_PATH_MAX.
PATH_MAX is set to 260 in MinGW.
2012-12-19 17:08:25 +08:00
lins05
053eef257e [win] Use unicode api when have strings 2012-11-26 17:38:50 +08:00
Jiaqiang Xu
44ffce92b9 Implemented a new merge algorithm.
This algorithm is simplified and doesn't assume worktree and index.
It just merge fs objects and write out merged fs objects.

Now for repo operations on seahub, if there are concurrent updates,
the two commits will be merged.
2012-10-24 13:42:40 +08:00
Jiaqiang Xu
05e71139dc Fix a bug in creating seafdir object.
Entries in a seafdir object should be sorted when created on client.
2012-10-12 16:43:01 +08:00
Jiaqiang Xu
09bdee94a6 Fix a bug in seafile client.
wt_status_collect_untracked() function should not pass the full path
of a file to should_ignore() function.
2012-09-01 15:49:28 +08:00
lins05
90b585db11 [server] revert deleted file on server
* When a reverted file's parent dir was deleted, revert it
to root dir.
2012-08-17 10:58:01 +08:00
gnehzuil
5a7a0dad7d Init seafile repo. 2012-07-27 19:47:42 +08:00