Romern / syncMyMoodle

Synchronization client for RWTH Moodle
GNU General Public License v3.0
73 stars 18 forks source link

Compare moodle `timemodified` with timestamp of local files #77

Open septatrix opened 3 years ago

septatrix commented 3 years ago

Sometimes course instructors upload newer versions of a file to change some mistakes etc. This would be a relatively simple¹ way to catch those cases and download the newer version.

However if this is implemented we would also provide a solution for cases where all timestamps get updated (e.g. copying the files from one pc to another). For linux this could be done by a recursive touch to a day in the past however it would also be possible to use os.utime to set the timestamp to the one in Moodle. This could actually be done for every downloaded file

¹ In relation to always downloading every file and comparing the checksum.