the_dude_abides
Member
The short version: can I edit the files that I have included with a project?
I am taking the text output of the "show information" summary from an object, and placing it in a standard text file (as it outputs in html for some reason) so it can be read and parsed for local / permanent variables. It's then placed in the included files.
However, this info as is has some things that aren't necessary (such as commented out lines of behind the scenes engine activity), and instead of manually removing it I'm trying to rewrite the included file with only what is required. The contents are read, the excess is removed, and the rest is stored in a ds list. I then want to delete the original and redo it from the ds list contents, or overwrite the original.
Is that possible with the sandboxing? I thought it would be within the system limits to do this with included files, but am struggling to make it work.
1) Would giving system permission allow me to delete an included file after using it? (get_open_filename etc)
2) If that works, and allows me to delete the original file, then presumably the system permission would end there?
3) If 1 and 2 are possible, would a second system permission request allow me to save the new file (rewritten) back into the included files location?
I am taking the text output of the "show information" summary from an object, and placing it in a standard text file (as it outputs in html for some reason) so it can be read and parsed for local / permanent variables. It's then placed in the included files.
However, this info as is has some things that aren't necessary (such as commented out lines of behind the scenes engine activity), and instead of manually removing it I'm trying to rewrite the included file with only what is required. The contents are read, the excess is removed, and the rest is stored in a ds list. I then want to delete the original and redo it from the ds list contents, or overwrite the original.
Is that possible with the sandboxing? I thought it would be within the system limits to do this with included files, but am struggling to make it work.
1) Would giving system permission allow me to delete an included file after using it? (get_open_filename etc)
2) If that works, and allows me to delete the original file, then presumably the system permission would end there?
3) If 1 and 2 are possible, would a second system permission request allow me to save the new file (rewritten) back into the included files location?