isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

Fix: handle updating of files in root directory #761

Closed alexanderleegs closed 1 year ago

alexanderleegs commented 1 year ago

This PR fixes a bug in our update behaviour - we were previously checking that the directory a file was in exists before making any update call, but this was failing for our root directory. This PR skips the check if the file belongs to our root directory. Note that Create does not need to have this same behaviour - we never create files inside our root folder.