On Jan 28, 2011, at 6:05 PM, Doug Currie wrote: >> But the target file or directory could not exist at all, so it won't solve >> the problem. > What is "the problem?" I thought the problem was knowing if the link to be > created was to a directory or to a file.
Exactly. But we don't know if the link points to a directory or a file, when the target path doesn't exist. Example: $ ln -s randomfilename newlink We don't know what kind of link it is -- folder or file, because "randomfilename" doesn't exist. Now: $ mkdir randomfilename -- newlink points to directory. $ rm randomfilename $ touch randomfilename -- newlink now points to file. $ rm randomfilename -- newlink doesn't exist. $ fossil add newlink -- now we don't know if newlink points to file or folder. On Windows: C:\> fossil open ../repository (deep inside Fossil's code) CreateSymbolicLink("newlink", "randomfilename", FILE_OR_FOLDER) FILE_OR_FOLDER? -- Dmitry Chestnykh _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users