You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This bug is quite random and I am not sure what is happening as it appears to affect 2 of my modules. Files in doubly nested folders are being downloaded twice - once in the correct location (which is to be in the double nested folders), and another time in the main directory.
For eg, we have a file 1.txt in ../CS2040S/Lectures/Lecture 1/1.txt, 1.txt seems to be downloaded in both ../CS2040S/Lectures/Lecture 1 (which is the correct behaviour) and ../CS2040S/Lecture 1 (which is the wrong behaviour).
To Reproduce
Simply syncing. However, it should be noted that I did not encounter this issue previously. It only surfaced recently without any changes to Lominus and the folder structure for the module is exactly the same.
Additional context
logfile:
[2022-10-13 22:11:44] DEBUG - downloading - CS2040S/Lab7/1DayAsg6.pdf [0001-01-01 00:00:00 +0000 UTC vs 2022-10-13 10:13:43 +0000 UTC] (/home/jiawei/Documents/lominus/internal/cron/cron.go:github.com/beebeeoii/lominus/internal/cron.createJob.func1:224)
[2022-10-13 22:11:45] DEBUG - downloading - CS2040S/Lab7/Lab7.pdf [0001-01-01 00:00:00 +0000 UTC vs 2022-10-13 10:13:43 +0000 UTC] (/home/jiawei/Documents/lominus/internal/cron/cron.go:github.com/beebeeoii/lominus/internal/cron.createJob.func1:224)
[2022-10-13 22:11:46] DEBUG - downloading - CS2040S/Labs/Lab7/1DayAsg6.pdf [0001-01-01 00:00:00 +0000 UTC vs 2022-10-13 10:13:43 +0000 UTC] (/home/jiawei/Documents/lominus/internal/cron/cron.go:github.com/beebeeoii/lominus/internal/cron.createJob.func1:224)
[2022-10-13 22:11:47] DEBUG - downloading - CS2040S/Labs/Lab7/Lab7.pdf [0001-01-01 00:00:00 +0000 UTC vs 2022-10-13 10:13:43 +0000 UTC] (/home/jiawei/Documents/lominus/internal/cron/cron.go:github.com/beebeeoii/lominus/internal/cron.createJob.func1:224)
The text was updated successfully, but these errors were encountered:
Issue should be fixed by c069d18. Files are duplicated because retrieval of folders in a module returns ALL nested folders. this resulted in duplication of files as each folder is being processed and files in each of them are being downloaded multiple times.
Describe the bug
This bug is quite random and I am not sure what is happening as it appears to affect 2 of my modules. Files in doubly nested folders are being downloaded twice - once in the correct location (which is to be in the double nested folders), and another time in the main directory.
For eg, we have a file
1.txt
in../CS2040S/Lectures/Lecture 1/1.txt
,1.txt
seems to be downloaded in both../CS2040S/Lectures/Lecture 1
(which is the correct behaviour) and../CS2040S/Lecture 1
(which is the wrong behaviour).To Reproduce
Simply syncing. However, it should be noted that I did not encounter this issue previously. It only surfaced recently without any changes to Lominus and the folder structure for the module is exactly the same.
Additional context
logfile:
The text was updated successfully, but these errors were encountered: