I’m pretty sure OP is referring to Photos for macOS Preferences > iCloud > “Download Originals to this Mac” - you can move your .photoslibrary file to an external or network drive if you need for space reasons.
Then all your files can be accessed with the .photoslibrary file context menu, “Show Package Contents”, “originals” folder.