1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2024-10-24 09:42:48 +02:00
Commit Graph

12636 Commits

Author SHA1 Message Date
Camila San
706cfe88d0 Fixes syncing in sub directories.
Signed-off-by: Camila San <hello@camila.codes>
2019-02-04 15:10:29 +01:00
Camila San
653c10be86 Fixes deleting of files in sub folder.
Signed-off-by: Camila San <hello@camila.codes>
2019-01-28 10:59:42 +01:00
Camila San
b38b821480
Fix wording.
See PR #1043.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-25 14:07:19 +01:00
Bani Azarael
723b8907f2 Show enabled ContextMenu for Mac
* Add relative path for database
* Enable items on context menu
2019-01-24 15:38:21 -06:00
zkoria
27d639a986 test Clean local folder case. 2019-01-24 12:47:39 -06:00
Camila San
8499df8a7c Fixes conflicting files.
Signed-off-by: Camila San <hello@camila.codes>
2019-01-24 10:19:40 +01:00
Camila San
80ba3adc33 Does not change the file mode when user touches it.
- Always sync the file but do not change mode.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-22 20:12:04 +01:00
zkoria
c149465f80 update socketapi.cpp 2019-01-21 22:50:10 -06:00
Camila San
cd1c5922d1 Fixes syncing of files in sub directories.
- Paths were being set in the wrong way in the local file tree.
- TODO: refactor it. It can be done better.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-22 01:50:44 +01:00
zkoria
483630667b update socketapi.cpp 2019-01-21 16:44:40 -06:00
Camila San
f746c74bf8 Makes sure to set all files touched by the user to offline.
- After setting to offline, sync it.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-21 00:06:52 +01:00
zkoria
63a591b5fd activate CleanLocalFolder case. 2019-01-18 13:45:22 -06:00
zkoria
8ba1fdb642 update Sync Icons for Win (2). 2019-01-18 03:45:36 -06:00
zkoria
5bb63b93cc update Sync Icons for Win. 2019-01-17 19:54:36 -06:00
Camila San
1c1111fb7b Fixes syncing of files in directories.
- Folders that are set to online get their files ignored by the sync
engine.
- Minor change: remove qdebug message from csync.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-17 13:32:27 +01:00
Camila San
cd6225d418 Fixes deleting of files in the server.
- Also correctly add calls for syncing in the correct places.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-17 00:36:53 +01:00
Camila San
848993baab Merge branch 'filestreaming-v5' of https://github.com/nextcloud/desktop into filestreaming-v5 2019-01-16 13:27:54 +01:00
Camila San
06b32222a4
Only syncs offline files.
- Checks if files are offline before downloading it.
- Updates last access once syncing is done.
- In vfs_windows calls for syncing only where is needed: openfile,
delete and write (WIP)

Signed-off-by: Camila San <hello@camila.codes>
2019-01-16 01:27:51 +01:00
Camila San
37028c7e19 Only syncs offline files.
- Checks if files are offline before downloading it.
- Updates last access once syncing is done.
- In vfs_windows calls for syncing only where is needed: openfile,
delete and write (WIP)

Signed-off-by: Camila San <hello@camila.codes>
2019-01-15 22:42:17 +01:00
Camila San
3536c55ae4 Fixes syncing files in subfolders.
Signed-off-by: Camila San <hello@camila.codes>
2019-01-15 20:34:14 +01:00
Camila San
f337125818 Removes last slash from path to folder.
- Extra slash in the end was causing error when trying to open and read
dir on Windows.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-15 16:15:29 +01:00
zkoria
80dfe2a703 fixpath 2019-01-14 12:57:11 -06:00
Camila San
c89d3d97bc To test: fixes wrong file path.
- For the database we needed to use the relative path to the file.
- Fixes path before we do requests to the sync engine.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-14 17:36:06 +01:00
zkoria
9035995cda Tranfor virtual path to real path. 2019-01-11 13:17:22 -06:00
zkoria
e7470fd57b Sync Icons for Win 2019-01-10 18:25:18 -06:00
zkoria
aba6ebece7 End points createFile, moveFile, createDirectory, moveDirectory 2019-01-10 11:39:48 -06:00
Bani Azarael Mejia Flores
ffa35c183c Sync Icons for Mac 2019-01-03 16:25:42 -06:00
Camila San
f848e21768 Do not overwrite the instruction given by FUSE.
- The instruction given by fuse was overwritten with 'new'.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-03 09:48:34 -08:00
Camila San
8ca06ff0ec Fixes crash on the first run.
- SyncJournalDb instance was null when _syncJournalDb variable was
created in SyncWrapper.

Signed-off-by: Camila San <hello@camila.codes>
2019-01-03 06:17:28 -08:00
Camila San
b886bb9c15 Uses local discovery method for opening local directory.
Signed-off-by: Camila San <hello@camila.codes>
2018-12-28 17:16:06 +01:00
Camila San
181bbebd6f Fixes check if file gets excluded by _csync_detect_update on Windows.
- The code os commented out because of the changes made to search the
file in the folder.

Signed-off-by: Camila San <hello@camila.codes>
2018-12-24 14:06:54 -08:00
Camila San
98c8fa21c9 Fixes exception "directory or file invalid" on Windows.
- Refactores solution to get file information on Windows.
- Do not update the local tree again after finishing sync.

Signed-off-by: Camila San <hello@camila.codes>
2018-12-24 07:10:09 -08:00
Camila San
6eb4986e11 Replaces Qt::DirectConnection for Qt::QueuedConnection.
- The sync engine needed to run in the main thread not in the FUSE
thread.

Signed-off-by: Camila San <hello@camila.codes>
2018-12-18 06:49:24 -08:00
Camila San
c19ecb3c8b
Replaces timeout value for ULONG_MAX in discovery remote phase.
Signed-off-by: Camila San <hello@camila.codes>
2018-12-07 15:13:52 +01:00
Camila San
4d8dfae25f
Removes logic that cleaned up trail slash in the beginning of the path.
It wasn't necessary.

Signed-off-by: Camila San <hello@camila.codes>
2018-12-07 15:13:28 +01:00
Camila San
dbe3b662db
Removes repeated call to schedule sync.
Signed-off-by: Camila San <hello@camila.codes>
2018-12-06 14:28:04 +01:00
Roeland Jago Douma
4d57f27c51
Do not fetch activities if they are not enabled
Fixes #788
Fixes #834

If the activity app is not enabled we should not try to fetch the
activities at all.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-12-06 14:18:35 +01:00
Hitss
79a2b0488f
2 Update windows trigger openFile. 2018-12-05 11:04:26 +01:00
Hitss
73e79fd40f
Update windows trigger openFile. 2018-12-05 11:04:06 +01:00
Camila San
59ed4f3fa7 Checks if current thread can call sync start timer otherwise calls start sync directly.
Signed-off-by: Camila San <hello@camila.codes>
2018-12-02 13:51:43 -08:00
Camila San
6b050b9c50 Checks only for the given filename in the directory when adding file to local tree.
Signed-off-by: Camila San <hello@camila.codes>
2018-12-02 13:48:32 -08:00
Hitss
e100ae15d2 Update, windows-dokan FindFiles accept rootDirectory cachedFiles. 2018-11-30 01:32:09 -08:00
Camila San
bcb0f2cd62 Adds function to look for file in the folder when adding it the local
file tree.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-26 08:45:20 -08:00
Camila San
ff62968cb8 Sets up syncing on fuse for Windows.
- Adds signals for triggering syncing for fuse operations.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-26 08:43:36 -08:00
Camila San
d9ca247db3 Uses FolderMan functions to prepare folder for syncing.
And then calls the sync.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-26 08:42:39 -08:00
Camila San
9235c7cc7f Fixes comments in VfsMac.
Signed-off-by: Camila San <hello@camila.codes>
2018-11-26 07:37:24 -08:00
Camila San
3344e18cf0 Adds syncwrapper.cpp to CMakelists.txt for Windows.
Signed-off-by: Camila San <hello@camila.codes>
2018-11-26 07:34:22 -08:00
Camila San
9667421cff
Handles release file at path instruction.
- TODO: remote discovery times out leading the sync engine to think that there are new files instead of syncing them correctly.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-25 12:10:23 +01:00
Camila San
8db3b4b790
It checks if path given to local discovery is a directory and then checks for files under it.
Signed-off-by: Camila San <hello@camila.codes>
2018-11-24 22:08:21 +01:00
Camila San
7a842d14ad
Uses only signal/slot to connect fuse drive operation to the sync engine.
- Uses QMutex + QWaitCondition to handle requestes to the sync engine.
- Refactores most of the SyncWrapper.
- Defines time out for the remote discoveryphase (TODO).

Signed-off-by: Camila San <hello@camila.codes>
2018-11-22 22:28:50 +01:00