{"action":"opened","issue":{"url":"https://api.github.com/repos/linkcheck/linkchecker/issues/78","repository_url":"https://api.github.com/repos/linkcheck/linkchecker","labels_url":"https://api.github.com/repos/linkcheck/linkchecker/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/linkcheck/linkchecker/issues/78/comments","events_url":"https://api.github.com/repos/linkcheck/linkchecker/issues/78/events","html_url":"https://github.com/linkcheck/linkchecker/issues/78","id":250637514,"number":78,"title":"Windows command prompt doesn't accept local roots surrounded by \"\"","user":{"login":"Kisty","id":3243752,"avatar_url":"https://avatars1.githubusercontent.com/u/3243752?v=4","gravatar_id":"","url":"https://api.github.com/users/Kisty","html_url":"https://github.com/Kisty","followers_url":"https://api.github.com/users/Kisty/followers","following_url":"https://api.github.com/users/Kisty/following{/other_user}","gists_url":"https://api.github.com/users/Kisty/gists{/gist_id}","starred_url":"https://api.github.com/users/Kisty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kisty/subscriptions","organizations_url":"https://api.github.com/users/Kisty/orgs","repos_url":"https://api.github.com/users/Kisty/repos","events_url":"https://api.github.com/users/Kisty/events{/privacy}","received_events_url":"https://api.github.com/users/Kisty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-16T14:00:07Z","updated_at":"2017-08-16T14:00:07Z","closed_at":null,"body":"I want to test a root of multiple HTML files and check external links. Really surprised that the GUI doesn't automatically default to this, or at least, have it as an option.\r\n\r\nAnyway, I tried doing so on the command line using `--check-extern` as suggested [in this issue](https://github.com/wummel/linkchecker/issues/697). Took me a long time to work out how to get the command line to accept the path. \r\n\r\nReally what should happen is the command line should be using the same logic that the GUI uses for getting file paths. The reason I'm using the command line is for checking external links.\r\n\r\nWhat the tool doesn't like is when the root is surround by `\"\"`. Adding a leading slash to the end `\\` doesn't work but putting escaped slash `\\\\` or no slash is fine. Without `\"\"`, either with or without a leading slash (unescaped) works i.e. `\\`.\r\n\r\n### Using path, leading slash `\\` - _NOT WORKING_\r\nWhen putting the path surrounded in `\"\"` with a leading slash `\\` e.g. `\"C:\\Path\\To\\Folder\\\"`\r\n```\r\nC:\\Users\\TimKist>\"C:\\Program Files (x86)\\LinkChecker\\linkchecker\" \"C:\\Users\\TimKist\\Documents\\Source\\citbapps\\operativesPlus\\src\\operatives\\assets\\Documents\\\"\r\nINFO 2017-08-16 14:38:17,661 MainThread Checking intern URLs only; use --check-extern to check extern URLs.\r\nLinkChecker 9.3              Copyright (C) 2000-2014 Bastian Kleineidam\r\nLinkChecker comes with ABSOLUTELY NO WARRANTY!\r\nThis is free software, and you are welcome to redistribute it\r\nunder certain conditions. Look at the file `LICENSE' within this\r\ndistribution.\r\nGet the newest version at http://wummel.github.io/linkchecker/\r\nWrite comments and bugs to https://github.com/wummel/linkchecker/issues\r\nSupport this project at http://wummel.github.io/linkchecker/donations.html\r\n\r\nStart checking at 2017-08-16 14:38:17+001\r\n\r\nURL        `file:///C|/Users/TimKist/Documents/Source/citbapps/operativesPlus/src/operatives/assets/Documents\"'\r\nReal URL   file:///C|/Users/TimKist/Documents/Source/citbapps/operativesPlus/src/operatives/assets/Documents%22\r\nCheck time 0.004 seconds\r\nResult     Error: URLError: <urlopen error [Error 123] The filename, directory name, or volume label syntax is incorrect: u'C:\\\\Users\\\\TimKist\\\\Documents\\\\Source\\\\citbapps\\\\operativesPlus\\\\src\\\\operatives\\\\assets\\\\Documents\"'>\r\n\r\nStatistics:\r\nDownloaded: 0B.\r\nContent types: 0 image, 0 text, 0 video, 0 audio, 0 application, 0 mail and 1 other.\r\nURL lengths: min=100, max=100, avg=100.\r\n\r\nThat's it. 1 link in 1 URL checked. 0 warnings found. 1 error found.\r\nStopped checking at 2017-08-16 14:38:17+001 (0.02 seconds)\r\n```\r\n\r\n### Using path, with leading escaped slash, surrounded by `\"\"` - _WORKS_\r\nHowever, what works is when you put a path with an escaped slash at the end `\\\\` like `\"C:\\Path\\To\\Folder\\\\\"` \r\n\r\n### Using path, no leading space, surrounded by `\"\"` - _WORKS_\r\nIncidentally, this shows when you don't put a leading slash in, doesn't show any errors which is a bug as there are external link errors. `\"C:\\Path\\To\\Folder\"`\r\n\r\n### Using path, no leading space, *not* surrounded by `\"\"` - _WORKS_\r\nAlthough, without `\"\"`, it's fine. e.g. `C:\\Path\\To\\Folder` (notice no leading slashes)\r\n\r\n### Using file URI, (both with and without leading slash) - _WORKS_\r\nFile URI worked fine (though took a while to work out how to convert a Windows path to file URI."}}
{"actor":{"display_login":"Kisty"}}