{"action":"opened","issue":{"url":"https://api.github.com/repos/abw/Badger/issues/9","labels_url":"https://api.github.com/repos/abw/Badger/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/abw/Badger/issues/9/comments","events_url":"https://api.github.com/repos/abw/Badger/issues/9/events","html_url":"https://github.com/abw/Badger/issues/9","id":129436469,"number":9,"title":"Badger::Filesystem::File::directory yields a Badger::Filesystem::Directory without a volume","user":{"login":"LouisStrous","id":5446337,"avatar_url":"https://avatars.githubusercontent.com/u/5446337?v=3","gravatar_id":"","url":"https://api.github.com/users/LouisStrous","html_url":"https://github.com/LouisStrous","followers_url":"https://api.github.com/users/LouisStrous/followers","following_url":"https://api.github.com/users/LouisStrous/following{/other_user}","gists_url":"https://api.github.com/users/LouisStrous/gists{/gist_id}","starred_url":"https://api.github.com/users/LouisStrous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LouisStrous/subscriptions","organizations_url":"https://api.github.com/users/LouisStrous/orgs","repos_url":"https://api.github.com/users/LouisStrous/repos","events_url":"https://api.github.com/users/LouisStrous/events{/privacy}","received_events_url":"https://api.github.com/users/LouisStrous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-28T12:24:55Z","updated_at":"2016-01-28T12:24:55Z","closed_at":null,"body":"`Badger::Filesystem::File::directory` yields a `Badger::Filesystem::Directory` that omits the File's volume part.  Example:\r\n\r\n    use Badger::Filesystem 'FS';\r\n    $file = FS->file('C:/path/to/file.txt'); # Badger::Filesystem::File\r\n    $file->path;                             # 'C:\\path\\to\\file.txt', OK\r\n    $file->volume;                           # 'C:', OK\r\n    $dir = $file->directory;                 # Badger::Filesystem::Directory\r\n    $dir->path;                              # '\\path\\to\\file.txt', NOK\r\n    $dir->volume;                            # '', NOK\r\n\r\nIf `Badger::Filesystem::File::directory"}}