#1772: Simfactory: potentially serious problem with CACHE directory in the simulations directory -------------------------+-------------------------------------------------- Reporter: bmundim | Owner: Type: defect | Status: new Priority: critical | Milestone: ET_2015_05 Component: SimFactory | Version: development version Resolution: | Keywords: CACHE -------------------------+--------------------------------------------------
Comment (by rhaas):
If you want to check if a file is a symbolic link (instead of checking that it is not multiply hard-linked) you can also use os.path.islink. See https://stackoverflow.com/questions/11068419/check-if-file-is-symlink-in- python and https://docs.python.org/2/library/os.path.html#os.path.islink