File Manager Storage Location
PermalinkI am about to port an app to C5, there are a folder contains a lot of images that i want to port and use them at File Manager.
For this purpose, i copied them into files folder (/files/people/*.*), then wrote a code that get all images at this folder an add them to the file manager:
Loader::library("file/importer"); $fi = new FileImporter(); $newFile = $fi->import($pathToFile, $nameOfFile, $fileObject);
What this code does is to create a another folder for every file, and copy original one into new folder, so after running the code, i have thousands of folder.
What i want is to C5 use the original file located at /files/people/*.*
Is this possible? if so , how?

Edit, thinking more, maybe I thought too fast. The name and interface suggests that maybe you can set the location for individual files. Whether you can set it outside of the file manager is another matter.
The file manager does more than just hash the locations of files. It also manages versions and associates versions with page versions.