1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2024-11-27 15:42:46 +01:00
Commit Graph

12647 Commits

Author SHA1 Message Date
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
Camila San
ea0a49be67
Removes unused QThread for fuse.
Signed-off-by: Camila San <hello@camila.codes>
2018-11-14 22:47:26 +01:00
Camila San
15f7b7641c
Comments out the use of time controller local discovery.
- Also call sync engine startSync with a direct connection.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-14 22:47:26 +01:00
Jesús Deloya
1392b81e49 Merge of conflicting files 2018-11-14 10:00:32 -06:00
Jesús Deloya
d13c0ce6f2 Fix for exluding finder process on openfileatpath 2018-11-14 09:49:59 -06:00
Camila San
5f974b91ac
Refactores selective sync.
- Integrates sync with currrent FUSE code - still needs fixing.
- Fixes return of getProcessName function by using QString.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 21:41:15 +01:00
Camila San
22ee266f4d
Refactores selective sync.
- Integrates sync with currrent FUSE code - still needs fixing.
- Fixes return of getProcessName function by using QString.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 19:05:56 +01:00
Camila San
9fc90a5aeb
Fixes libproc.h header missing and file encoding.
UTF-8 should be the deault encoding.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 14:42:06 +01:00
Camila San
363d16d02f
Adds update local tree function to SyncEngine.
Also removes unused code for start syncing with fuse.
Now it is using the same StartSync function as before.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 13:38:25 +01:00
Camila San
1fa89d0d76
Removes logic to not queue task if file is not offline.
The filtering out of online files is done in csync now.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 13:38:25 +01:00
Camila San
afbaef3f75
Adds update local tree function to SyncWrapper/Folder/SyncEngine/csync.
Fuse -> SyncWrapper -> Folder -> SyncEngine -> csync.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 13:38:19 +01:00
Camila San
144852b023
Adds function to update or insert files in the local file tree.
It uses the same logic used previously to do the local discovery.
This time it process one single file: csync_update_file -> csync_vio_opendir (only to get the handle) ->
csync_vio_read_file (creates csync_file_stat_t) -> csync_walker -> _csync_detect_update.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 12:09:32 +01:00
Camila San
7f147d414e
First attempt to use selective sync correctly by skipping local discovery.
It skips local discovery. It uses the information that fuse provides about the local files instead.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 12:09:32 +01:00
Camila San
522068a45f
It syncs all files set to OFFLINE.
This version still uses the timer and the usual discovery to sync files to the cache.
Forcing sync is also possible via the UI. Since we still have 0 byte files created in the cache,
the sync engine interprets them as conflict.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 12:09:25 +01:00
Camila San
196ff7d692
Interrupt search for files in path once the path is found in the Fuse drive.
Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 11:40:33 +01:00
Camila San
5a0b954308
Sets SyncMode and SyncModeDownload for the fuse drive files once the list is retrived.
Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 11:40:33 +01:00
Camila San
5dfc577347
It checks file syncmode before queueing it for download.
Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 11:40:33 +01:00
Camila San
ed8a9b3d03
Removes option to add more folders to sync.
Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 11:40:32 +01:00
Camila San
b3c07d4b27
Removes unused var in OwncloudSetupWizard::slotAssistantFinished.
Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 11:40:32 +01:00
Camila San
0bca618c08
Allows the adding of only one folder.
FolderMan uses only _currentSyncFolder.

Signed-off-by: Camila San <hello@camila.codes>
2018-11-13 11:40:25 +01:00
Hitss
2e7955ee15 Fix multiples call OpenFile from Finder. 2018-11-12 17:38:38 -06:00
Bani Azarael
e253499d42 Remove unused library 2018-11-01 15:50:42 -06:00
Bani Azarael
389ad46eee Fix for OpenFile in compressed files 2018-11-01 15:47:48 -06:00
Bani Azarael
600f35f777 Fix Check selection option contextual menu FS 2018-10-24 14:17:59 -05:00
Bani Azarael
967653d081 Check selection option contextual menu FS 2018-10-24 14:12:49 -05:00
Jonathan Ponciano Vera
2e4c531604 Code to umount dokan-windows drive on close 2018-10-17 12:05:40 -05:00
Bani Azarael
b683f7c893 Update hidden directory sync from Dokan-Windows 2018-10-12 17:22:28 -05:00
Bani Azarael
6b2c6c8aec Revert Fix shorten login 2018-10-12 15:05:30 -05:00
Bani Azarael
0206911639 Fix shorten login 2018-10-12 12:51:47 -05:00
Jonathan Ponciano Vera
30fb13efca Update dokan lib for windows. 2018-10-11 18:02:22 -05:00
Jonathan Ponciano Vera
0a4476a1fc Merge branch 'filestreaming' of https://github.com/nextcloud/desktop into filestreaming 2018-10-11 17:59:28 -05:00
Jonathan Ponciano Vera
6dff1bafcc Endpoints functions for use case windows. 2018-10-11 17:59:09 -05:00
Camila San
5335995f0e
Skips folder configuration when adding an user.
Signed-off-by: Camila San <hello@camila.codes>
2018-10-11 23:10:56 +02:00
Camila San
189812d05a
Fixes header and assert for syncjournaldb instance.
Signed-off-by: Camila San <hello@camila.codes>
2018-10-11 15:51:07 +02:00
Camila San
14c3aeac52
Adds OpenSSL initialization that it was commented out.
Signed-off-by: Camila San <hello@camila.codes>
2018-10-10 16:40:36 +02:00
Camila San
2c922e80a7
Fixes CMake find_package for OpenSSL.
Signed-off-by: Camila San <hello@camila.codes>
2018-10-10 15:51:14 +02:00
Camila San
552c8c703c
Fixes header in dokanLib/public.h.
Signed-off-by: Camila San <hello@camila.codes>
2018-10-10 15:49:34 +02:00
Akula
cbc5ab2a30 Full update for filestreaming Windows 2018-09-18 16:52:56 -05:00
Jesús Deloya
b2964c14d5 Next cloud icons on mounted file system for mac 2018-09-13 16:56:23 -05:00
Jesús Deloya
306a5d1fd4 Windows integration 2018-09-12 17:57:53 -05:00