{"action":"closed","issue":{"url":"https://api.github.com/repos/Kentico/KInspector/issues/119","repository_url":"https://api.github.com/repos/Kentico/KInspector","labels_url":"https://api.github.com/repos/Kentico/KInspector/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/Kentico/KInspector/issues/119/comments","events_url":"https://api.github.com/repos/Kentico/KInspector/issues/119/events","html_url":"https://github.com/Kentico/KInspector/issues/119","id":178709316,"number":119,"title":"Creating new KInspector module - Need Kentico file access","user":{"login":"WakeflyCBass","id":5831169,"avatar_url":"https://avatars.githubusercontent.com/u/5831169?v=3","gravatar_id":"","url":"https://api.github.com/users/WakeflyCBass","html_url":"https://github.com/WakeflyCBass","followers_url":"https://api.github.com/users/WakeflyCBass/followers","following_url":"https://api.github.com/users/WakeflyCBass/following{/other_user}","gists_url":"https://api.github.com/users/WakeflyCBass/gists{/gist_id}","starred_url":"https://api.github.com/users/WakeflyCBass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WakeflyCBass/subscriptions","organizations_url":"https://api.github.com/users/WakeflyCBass/orgs","repos_url":"https://api.github.com/users/WakeflyCBass/repos","events_url":"https://api.github.com/users/WakeflyCBass/events{/privacy}","received_events_url":"https://api.github.com/users/WakeflyCBass/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kentico/KInspector/labels/feature","name":"feature","color":"009800"},{"url":"https://api.github.com/repos/Kentico/KInspector/labels/idea","name":"idea","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T20:15:07Z","updated_at":"2016-10-11T15:43:23Z","closed_at":"2016-10-11T15:43:23Z","body":"I’m trying to build a KInspector module to scan Media Library items, and identify any database records that exist for Media Library files that are missing from the filesystem (for example, if the media library folder has changed) – without such a module, those files just disappear from the Media Library interface so it’s hard to know if you found all of your files. (https://docs.kentico.com/display/K9/Settings+-+Media)  \r\n\r\nI’ve already written code to go to the database and check the Media settings (to figure out the base folder for the media library) – but since KInspector doesn’t run within the context of the Kentico site, I can’t just run ‘File.Exists’ or ‘VirtualPathProvider.FileExists’ . Does anything exist within KInspector that could help with getting file access, or even getting the Kentico server's context so that I can check the virtual paths? \r\n\r\nI've created the new module in this fork:\r\nhttps://github.com/WakeflyCBass/KInspector/tree/Media-File-Consistency-Module."}}
{"actor":{"display_login":"ChristopherJennings"}}