Lines Matching refs:symfile

2743             immutable symfile = deleteme ~ "_slink\0";
2744 scope(exit) if (symfile.exists) symfile.remove();
2746 core.sys.posix.unistd.symlink(system_directory, symfile.ptr);
2748 assert(symfile.isSymlink);
2749 assert(!attrIsSymlink(getAttributes(symfile)));
2750 assert(attrIsSymlink(getLinkAttributes(symfile)));
2752 assert(attrIsDir(getAttributes(symfile)));
2753 assert(!attrIsDir(getLinkAttributes(symfile)));
2755 assert(!attrIsFile(getAttributes(symfile)));
2756 assert(!attrIsFile(getLinkAttributes(symfile)));
2763 immutable symfile = deleteme ~ "_slink\0";
2764 scope(exit) if (symfile.exists) symfile.remove();
2766 core.sys.posix.unistd.symlink(system_file, symfile.ptr);
2768 assert(symfile.isSymlink);
2769 assert(!attrIsSymlink(getAttributes(symfile)));
2770 assert(attrIsSymlink(getLinkAttributes(symfile)));
2772 assert(!attrIsDir(getAttributes(symfile)));
2773 assert(!attrIsDir(getLinkAttributes(symfile)));
2775 assert(attrIsFile(getAttributes(symfile)));
2776 assert(!attrIsFile(getLinkAttributes(symfile)));
3212 immutable symfile = deleteme ~ "_slink\0";
3213 scope(exit) if (symfile.exists) symfile.remove();
3215 symlink(system_directory, symfile);
3217 assert(symfile.exists);
3218 assert(symfile.isSymlink);
3219 assert(!attrIsSymlink(getAttributes(symfile)));
3220 assert(attrIsSymlink(getLinkAttributes(symfile)));
3222 assert(attrIsDir(getAttributes(symfile)));
3223 assert(!attrIsDir(getLinkAttributes(symfile)));
3225 assert(!attrIsFile(getAttributes(symfile)));
3226 assert(!attrIsFile(getLinkAttributes(symfile)));
3233 immutable symfile = deleteme ~ "_slink\0";
3234 scope(exit) if (symfile.exists) symfile.remove();
3236 symlink(system_file, symfile);
3238 assert(symfile.exists);
3239 assert(symfile.isSymlink);
3240 assert(!attrIsSymlink(getAttributes(symfile)));
3241 assert(attrIsSymlink(getLinkAttributes(symfile)));
3243 assert(!attrIsDir(getAttributes(symfile)));
3244 assert(!attrIsDir(getLinkAttributes(symfile)));
3246 assert(attrIsFile(getAttributes(symfile)));
3247 assert(!attrIsFile(getLinkAttributes(symfile)));
3329 immutable symfile = deleteme ~ "_slink\0";
3330 scope(exit) if (symfile.exists) symfile.remove();
3332 symlink(file, symfile);
3333 assert(readLink(symfile) == file, format("Failed file: %s", file));
4124 immutable symfile = deleteme ~ "_slink\0";
4125 scope(exit) if (symfile.exists) symfile.remove();
4127 core.sys.posix.unistd.symlink(system_directory, symfile.ptr);
4130 auto de = DirEntry(symfile);
4136 symfile.remove();
4137 core.sys.posix.unistd.symlink((deleteme ~ "_broken_symlink\0").ptr, symfile.ptr);
4141 DirEntry de = DirEntry(symfile);
4152 assert(symfile.exists);
4153 symfile.remove();