{"action":"closed","issue":{"url":"https://api.github.com/repos/DoctorD1501/JAVMovieScraper/issues/119","labels_url":"https://api.github.com/repos/DoctorD1501/JAVMovieScraper/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/DoctorD1501/JAVMovieScraper/issues/119/comments","events_url":"https://api.github.com/repos/DoctorD1501/JAVMovieScraper/issues/119/events","html_url":"https://github.com/DoctorD1501/JAVMovieScraper/issues/119","id":122367285,"number":119,"title":"moving/renaming files on networkshares does not work","user":{"login":"sabbeldacks","id":15072107,"avatar_url":"https://avatars.githubusercontent.com/u/15072107?v=3","gravatar_id":"","url":"https://api.github.com/users/sabbeldacks","html_url":"https://github.com/sabbeldacks","followers_url":"https://api.github.com/users/sabbeldacks/followers","following_url":"https://api.github.com/users/sabbeldacks/following{/other_user}","gists_url":"https://api.github.com/users/sabbeldacks/gists{/gist_id}","starred_url":"https://api.github.com/users/sabbeldacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabbeldacks/subscriptions","organizations_url":"https://api.github.com/users/sabbeldacks/orgs","repos_url":"https://api.github.com/users/sabbeldacks/repos","events_url":"https://api.github.com/users/sabbeldacks/events{/privacy}","received_events_url":"https://api.github.com/users/sabbeldacks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoctorD1501/JAVMovieScraper/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-15T21:12:09Z","updated_at":"2015-12-17T04:27:34Z","closed_at":"2015-12-17T04:27:34Z","body":"files on networkshares (e.g. \\\\pc-name\\share\\directory\\file.name ) are moved/renamed to wrong location.\r\nIn moviescraper.doctord.controller.Renamer.java function: getRenamedFolderPath the code (line 109) newPath.replace(doublePathSeperator, File.separator) manipulates even the beginning and invalidates the networkshare to \\pc-name\\... (only one slash at the beginning; java falls back to the drive letter from which the Scraper is started, so no error occurs using the wrong path).\r\nInstead of (line 72) path = getRenamedFolderPath(path), a better way would be\r\npath = FilenameUtils.getPrefix(oldFile.toString()) + getRenamedFolderPath(FilenameUtils.getPath(oldFile.toString()));\r\nThis seperates the share or drive letter from the path (using FilenameUtils.getPath() instead of FilenameUtil.getFullPath()).\r\n"}}