We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import shutil import pyfakefs.fake_filesystem import os ROOT_PATH = "/Volumes/ramdisk/newtest" fs = pyfakefs.fake_filesystem.FakeFilesystem() fs.CreateDirectory('/Volumes') fs.CreateDirectory('/Volumes/ramdisk') fs.CreateDirectory('/Volumes/ramdisk/newtest') os0 = pyfakefs.fake_filesystem.FakeOsModule(fs) opener0 = pyfakefs.fake_filesystem.FakeFileOpen(fs) if False: os0 = os shutil.rmtree(ROOT_PATH) os.mkdir(ROOT_PATH) component0 = "alpha" path0 = ROOT_PATH path0 += os.path.sep + component0 component0 = "" os0.symlink(path0,path0) path0 += os.path.sep + component0 result = os0.path.lexists(path0) print result result = os0.path.islink(path0) print result
pyfakefs says False, ref says True
The text was updated successfully, but these errors were encountered:
Exact same thing happens if you do islink
Sorry, something went wrong.
For reference: returns False under Linux and Windows, True under MacOS.
Successfully merging a pull request may close this issue.
pyfakefs says False, ref says True
The text was updated successfully, but these errors were encountered: