Hi! I have the following setting: - There is read-only data in some folder "public/" - I want to do further computation, which requires write permission on the data.
Obviously, one may write all new data into another folder "private/" with write permissions, and read the existing data from "public/". However, it would require a lot of work to teach my programs to read from one location and to write into another location. So, this is what I'd like to avoid. But there are of course several ways to make the data from "public/" available in "private/", so that my programs only need to deal with a single storage location: - Copy from public/ to private/. Obvious disadvantage: Costs space on disk and may take some time. - Create a hard link in private/ to the data in public/. Seems to be the easiest way. - Create a symbolic link in private/ to the data in public/. Unfortunately, Sage's "load" does not seem to be able to read from a symbolic link, so, I had to modify my programs by checking if something is a symbolic link and using os.readlink if it is. But this seems doable. What procedure would you recommend? Is there a reason why I should better use symbolic links than hard links? Or do you see a fourth way that would not require to teach my programs to use separate directories for reading and writing? Best regards, Simon -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
