Reply to thread

Have been running into a problem with the local-data filesystem being inside the the data filesystem. Specifically, $dataAdapter->listContents() (which lists all the files in the data directory) is now including files that are in the local-data:// filesystem. Because, well... it is.


Is it really the best idea to put a unique filesystem as a subdirectory of another filesystem like that (especially one where it's intended purpose is to never be part of it's parent filesystem)? Now we have a problem migrating files between different filesystems. Say for example you want to migrate data:// to R2 (or anything)... you move the files and delete them from the local filesystem... oh but wait, we just moved and deleted the local directory too since it's also part of the data:// filesystem.


Yes, of course you can code for exceptions, but filtering files that are part of the data:// filesystem (but really they aren't) is starting to feel hacky to me.


Back
Top Bottom