Isvvc
fb25d5bc29
Load data from cache in cachingDataTask
2021-04-16 17:54:07 -06:00
Isvvc
2634005b34
Update getCachedValue to read disk cache
2021-04-16 17:40:37 -06:00
Isvvc
92b2a3e473
Reimplement deleteAllCachedData for memory cache
2021-04-15 18:53:38 -06:00
Isvvc
5e38972591
Reimplement getCachedImage and its test
2021-04-15 18:48:30 -06:00
Isvvc
7118a274fd
Implement thumbnail fetching and memory caching
2021-04-15 16:16:09 -06:00
Isvvc
d1162ea298
Improve removeExistingCache behavior
2021-04-15 16:03:01 -06:00
Isvvc
12d88f1b7c
Remove 3lvis/Networking and its functionality
...
Rename WebDAVCacheOptions ot WebDAVCachingOptions.
Refactor WebDAV functions.
Update downloadImage to use cachingDataTask.
Note that many functions that depended on Networking are now non-functional.
2021-04-09 13:46:26 -06:00
Isvvc
49c9219f6b
Cache data downloaded with the download function
2021-04-08 19:27:40 -06:00
Isvvc
7fdb6c8c49
Only return fetched results with requestEvenIfCached if they are different than cached results
2021-04-08 14:09:21 -06:00
Isvvc
607e1723e6
Implement files disk cache
2021-04-08 13:54:23 -06:00
Isvvc
9fc9ef799f
Add functions to clear caches
2021-04-07 16:38:04 -06:00
Isvvc
7224459722
Add functions to save and load files cache on disk
2021-04-07 16:05:52 -06:00
Isvvc
0841dd5458
Implement memory caching options for listing files
2021-04-06 21:05:35 -06:00
Isvvc
e3018a1f86
Change private functions to internal
2021-03-30 18:12:55 -06:00
Isvvc
5fb5e5b001
Further simplify basicDataTask
2021-02-09 16:49:18 -07:00
Isvvc
d8c5b1c7ba
Add in-code documentation to move and copy file functions
2021-02-09 16:36:59 -07:00
Isvvc
5b102be40d
Implement copy file function
...
Closes #5
2021-02-09 16:34:26 -07:00
Isvvc
2f43ea3c13
Refactor basic data tasks
2021-02-09 15:35:37 -07:00
Isvvc
9e184d2cfc
Create move file function
...
Closes #4
2021-02-09 15:28:10 -07:00
Isvvc
ae21830274
Add function to get all cached thumbnails for a path
2021-02-05 15:16:48 -07:00
Isvvc
408ad64ff4
Add functions to get a cached image or thumbnail
2021-02-05 15:10:15 -07:00
Isvvc
e8d3f72587
Add in-code documentation to deleteAllCachedThumbnails and getAllCachedThumbnailURLs
2021-02-04 20:48:45 -07:00
Isvvc
2f95d2dbe0
Fix thumbnail caching by requiring Account argument
...
Separate getting cached thumbnail URLs into its own function
Check that images fetched are in fact cached
2021-02-04 20:42:05 -07:00
Isvvc
10241ea623
Implement cache functions for thumbnails
2021-02-04 20:05:49 -07:00
Isvvc
645f65c33a
Implement thumbnail downloading
2021-02-04 16:04:55 -07:00
Isvvc
65504f6bd9
Document cache-size properties
2021-02-01 14:39:45 -07:00
Isvvc
825de68ca5
Add formatted cache size function
2021-02-01 14:26:40 -07:00
Isvvc
5cc07f1bc0
Add Networking cache URL property and cache size function
2021-02-01 14:21:49 -07:00
Isvvc
3d27c8fc30
Decode WebDAVFile paths
...
Fix issue where image URLs requiring encoding would crash on download
2021-01-29 20:26:10 -07:00
Isvvc
66c00910f0
Add default option to remove the path's folder when listing files
2021-01-29 19:16:21 -07:00
Isvvc
0551bc60cc
Add default option to sort folders first
2021-01-29 17:10:31 -07:00
Isvvc
6a0ed735c2
Prepend / to paths given to Networking requests
2021-01-29 16:39:50 -07:00
Isvvc
e8db9aaa1a
Correct file path to not include path to dav
...
For example, remove the /remote.php/dav/... from the path for a Nextcould server.
2021-01-27 19:02:59 -07:00
Isvvc
2a2602b31c
Add function to delete all cached data
...
Refactor download tests
2021-01-07 18:50:39 -07:00
Isvvc
ad049a22b4
Add function to get the URL of a cached image
2021-01-07 18:18:52 -07:00
Isvvc
e509521100
Return the cached image URL after downloading an image
2021-01-07 18:05:52 -07:00
Isvvc
e308fb805b
Add function to delete cached data for path
2021-01-07 17:57:06 -07:00
Isvvc
875526673a
Implement Download Image function
2021-01-07 17:31:05 -07:00
Isvvc
6bbc4158cc
Make WebDAVAccount conform to Hashable
...
Create networking dictionary in WebDAV for storing Networking objects based on account
2021-01-07 16:41:30 -07:00
Isvvc
8d2215d8c5
Rename DAVAccount protocol to WebDAVAccount
2020-11-19 11:49:36 -07:00
Isvvc
7fb9e817e8
Remove print statement from listFiles
2020-11-19 11:49:15 -07:00
Isvvc
c1bbed5869
Add error handling to deleteFile
...
Closes #7
2020-11-19 11:12:41 -07:00
Isvvc
6a0f7024fd
Move getError functions to WebDAVError
2020-11-19 11:08:36 -07:00
Isvvc
4ea6ce9f78
Add error handling to createFolder
2020-11-19 11:03:52 -07:00
Isvvc
f697c1d3f0
Add error handling to download
2020-11-19 10:58:41 -07:00
Isvvc
a465f7dd3d
Simplify getting errors
2020-11-19 10:58:20 -07:00
Isvvc
0e658d4d16
Add error handling to upload file
2020-11-19 10:53:08 -07:00
Isvvc
9e3b551973
Add error handling to upload
2020-11-19 10:51:30 -07:00
Isvvc
a786b61cc0
Add error handling to listFiles
...
Create WebDAVError enum
2020-11-19 10:45:23 -07:00
Isvvc
9ec5290f2a
Make all network requests ephemeral
2020-11-17 17:25:10 -07:00