Commit graph

434 commits

Author SHA1 Message Date
abraunegg d43ec6d208 Update PR
* Update PR
2023-09-27 08:42:45 +10:00
abraunegg a9eea441c4 Update PR
* Update PR
2023-09-27 05:16:05 +10:00
abraunegg dabe6f3aca Update PR
* Update PR
2023-09-24 13:17:44 +10:00
abraunegg 7b3051f449 Update PR
* Update PR
2023-09-24 11:07:26 +10:00
abraunegg 9aabbab572 Update PR
* When Shared Business Folders is disabled, and the 'link' still exists online, we need to skip that root folder from syncing
2023-09-23 07:55:59 +10:00
abraunegg 4bd9ae5092 Initial code commit for onedrive client version v2.5.0-alpha-1
Add initial code for onedrive client version v2.5.0-alpha-1, adding in support for OneDrive Business Shared Folders
2023-09-22 05:34:42 +10:00
abraunegg 8d260a6b26 Update PR
* Update PR
2023-09-13 05:53:53 +10:00
abraunegg 6e7ab308d0 Update PR
* Update PR
2023-09-12 17:59:27 +10:00
abraunegg a195fdc04c Update PR
* Update PR
2023-09-12 15:31:59 +10:00
abraunegg 5ca45d9ddd Update PR
* Update PR
2023-09-12 08:00:50 +10:00
abraunegg bb1cf6765d Update PR
* Update PR
2023-09-11 14:51:46 +10:00
abraunegg 690cc52da2 Update PR
* Update PR
2023-09-11 14:32:22 +10:00
abraunegg a819cfb4ea Update PR
* Update PR
2023-09-11 14:31:10 +10:00
abraunegg 8ac38a2428 Update PR
* Update PR
2023-09-10 16:37:10 +10:00
abraunegg d38589dc26 Update PR
* Update PR
2023-09-10 14:53:31 +10:00
abraunegg 78328d0d21 Update PR
* Update PR
2023-09-10 10:45:47 +10:00
abraunegg 977be82b23 Update PR
* Update PR
2023-09-10 09:07:53 +10:00
abraunegg 222cac596d Update PR
* Update PR
2023-09-09 19:14:58 +10:00
abraunegg fbfb339996 Update PR
* Update PR
2023-09-09 19:08:51 +10:00
abraunegg a656757a90 Update PR
* Update PR
2023-09-09 06:34:52 +10:00
abraunegg c659cb2040 Update PR
* Update PR
2023-09-03 15:05:01 +10:00
abraunegg 54b3d52703 Update PR
* Update PR
2023-09-03 07:38:36 +10:00
abraunegg 760b3c81b2 Update PR
* Update PR
2023-09-02 13:06:37 +10:00
abraunegg 29b0cdaccf Update PR
* Update PR
2023-09-02 12:31:16 +10:00
abraunegg e3b3abb797 Update PR
* Update PR
2023-09-02 12:27:10 +10:00
abraunegg eb837dbe1f Update PR
* Update PR
2023-08-31 06:29:24 +10:00
abraunegg 44be502c62 Update PR
* Update PR
2023-08-29 09:56:55 +10:00
abraunegg 3f5a4fa29c Update PR
* Update PR
2023-08-28 16:56:16 +10:00
abraunegg 1ac5d9f9d8 Update PR
* Update PR
2023-08-27 14:22:06 +10:00
abraunegg ce02fd8ce7 Update sync.d
* ensure v2.5.0-alpha-0 is set
2023-08-27 10:57:29 +10:00
abraunegg eb9d637eba Initial commit of code re-write for v2.5.0
* Initial commit of v2.5.0-alpha-0 code changes, supporting fixing #232
2023-08-27 09:35:51 +10:00
abraunegg 43b0bed4cb
Fix debugging log output when reporting file size and hash mismatch (#2473)
* Fix debug logging output with correct hash values as these were switched
* Only calculate local file size post download once and reuse value
2023-08-24 18:08:21 +10:00
abraunegg 268dcf9120
Fix that zero-byte files do not have a hash as reported by the OneDrive API thus should not generate an error message (#2436)
* The OneDrive API does not present a hash for all files, most notably those that are zero byte in size (this may be fixed by the OneDrive API in the future). Add a wrapper to the existing makeItem function to test the file size before working out if this is a going to be a problem and if it is, then print out an error message if the file size is greater than 0 including either the full filename path or the items id.
2023-06-21 13:21:05 +10:00
abraunegg 06420c9a0a
Remove sha1 use and cleanup defunct remaining crc32 use (#2424)
* Remove sha1 from being used by the client as this is being depreciated by Microsoft in July 2023 - https://devblogs.microsoft.com/microsoft365dev/deprecation-of-sha1hash-on-onedrive-personal/
* Complete the removal of crc32 as this is also no longer present for a long time, but some code elements still existed
* Only compute quickXorHash, not quickXorHash and sha256Hash as computing sha256Hash is CPU expensive
* Update cache database stored items to only store quickXorHash and sha256Hash values (remove crc32 and sha1)
2023-06-20 06:55:00 +10:00
abraunegg 00ce7eed0e
Fix that folders are renamed despite using --dry-run (#2343)
* Fix that folders are renamed despite using --dry-run
2023-03-27 17:22:48 +11:00
abraunegg cfb4933778
Fix that a HTTP 504 - Gateway Timeout causes local files to be deleted when using --download-only & --cleanup-local-files mode (#2342)
* Fix that a HTTP 504 - Gateway Timeout causes local files to be deleted when using --download-only & --cleanup-local-files mode
2023-03-19 09:54:58 +11:00
abraunegg 678add91f8
Update --get-O365-drive-id error handling (#2266)
* Ensure a 'Personal' account type is not being used
* If the /sites?search API cannot be found, display a more appropriate error message
2022-12-16 06:08:46 +11:00
abraunegg 0b89a1fea0
Change order of Microsoft OneDrive restrictions and limitations check and skip_file|skip_dir (#2238)
* Perform check against Microsoft OneDrive restriction and limitations after user configured items to skip has been performed
2022-11-26 05:42:38 +11:00
abraunegg 5a7da61cbb
Fix issue of silent exit when unable to delete local files when using --cleanup-local-files (#2227)
* Add try blocks for performing local deletes to catch in function permission issues preventing file|folder local deletion.
2022-11-19 06:18:56 +11:00
abraunegg 0ec1c95e4a
Only call isPathExcludedViaSyncList if 'sync_list' is enabled where possible (#2213)
* Only check 'sync_list' if this has been enabled and configured, otherwise do not undertake a check as it is computationally redundant where possible
2022-11-10 16:58:54 +11:00
abraunegg 941e1e215d
Ensure path does not start with '/' before sync_list check (#2215)
* Ensure path does not start with '/' before sync_list check due to changes from 2211 and 2212
2022-11-10 14:28:20 +11:00
abraunegg 361c3cf0a1
Update Fix 2211 and 2212 (#2214)
* Update fixes for 2211 and 2212 due to undesirable path issue and output when application processing is actually correct
2022-11-10 13:43:36 +11:00
abraunegg 4a6c78a7a6
Only calculate path with computeItemPath if path is empty (#2212)
* Only calculate path with computeItemPath if path is empty, avoiding a double calculation and DB operations
2022-11-10 07:03:58 +11:00
abraunegg c73c0aa608
Fix application crash when local file is changed to a symbolic link with non-existent target (#2211)
* Add a try & catch block for testing if the file exists locally to catch any filesystem error that may be generated
* Test path to be valid if a symbolic link
2022-11-10 06:50:37 +11:00
abraunegg 7daf8797f8
Add performance output for key functions (#2180)
* Add developer option 'display_processing_time' to control if performance timing is outputted or not
* If option is enabled, print performance data around how long key functions are taking to process data to assist with understanding any performance related questions
2022-10-12 13:34:42 +11:00
abraunegg 514df625b9
Add option to create a read-write shareable link (#2154)
* Implement Feature Request 2110 to add option to create a read-write shareable link
2022-09-26 17:56:42 +10:00
abraunegg e2ed2d2b58
Update notification handling for specific skipped scenarios (#2153)
* Update skip notification handling for the following scenarios:
  * Invalid Name (Microsoft Naming Convention)
  * Invalid Name (Contains an invalid whitespace item)
  * Invalid Name (Contains HTML ASCII Code)
  * Invalid Item (Invalid symbolic link)
2022-09-26 07:40:22 +10:00
abraunegg 738be2d150
Add option to cleanup local files regardless of sync state when using --download-only (#2113)
* Add option to cleanup local files regardless of sync state when using --download-only
2022-08-31 06:41:52 +10:00
abraunegg d169dfc642
Improve application logging output for error messages (#2100)
* When enabling system logging to a log file, the actual ERROR line is forced to a new line in the application log. The reason for this is the \n prefix in the error message, which was in place so that when performing CLI logging or systemd logging, the error message would be displayed clearly. This change removes the \n from the actual error message, but inserts a newline before the error message is displayed (and also in some cases post error message) - thus keeping the application runtime look and feel, but improving the application log output.
2022-08-18 09:14:13 +10:00
abraunegg 9b8a25f34c
Fix that logging output for skipped uploaded files is missing (#2094)
* Add missing logfile output when enabling logging so that when uploaded new & modified files are skipped, this is correctly reflected in logfile output
2022-08-17 05:48:11 +10:00