User forums > Help
How can I change the location of .save file(autosave)?
(1/1)
photon3108:
I like autosave because it saved me many times from testing new nightly build of CodeBlocks.
But it makes the source's list longer, I think that I should put all .save files in the "../save_folder".
Does anyone know how to do that?
Thanks.
MortenMacFly:
--- Quote from: photon3108 on February 01, 2010, 04:06:33 am ---Does anyone know how to do that?
--- End quote ---
As this won't work if you have several files with the same name in a project (just in different directories) it's very unlikely that this will be implemented. However, you can adopt the AutoSave plugin yourself and just add a "../save_folder" in front of the save command.
Search for:
--- Code: ---if(::wxFileExists(filename) && ::wxCopyFile(filename, temp))
--- End code ---
...and adjust as needed.
However, you need to ensure the target path exists.
TerryP:
One idea would be implementing some form of file name mangling based on variables, so it's possible to use such a folder for the saves without file name collisions; although ofc that would ruin any 8.3 limits you might need, but that's not likely a concern.
MortenMacFly:
--- Quote from: TerryP on February 01, 2010, 10:47:38 pm ---One idea would be implementing some form of file name mangling based on variables,
--- End quote ---
You can also just leave it as it is (which won't conflict) and use a file manager that allows to hide file names with specific extensions. That's how I do it.
Navigation
[0] Message Index
Go to full version