{"action":"created","issue":{"url":"https://api.github.com/repos/KnpLabs/Gaufrette/issues/332","labels_url":"https://api.github.com/repos/KnpLabs/Gaufrette/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/KnpLabs/Gaufrette/issues/332/comments","events_url":"https://api.github.com/repos/KnpLabs/Gaufrette/issues/332/events","html_url":"https://github.com/KnpLabs/Gaufrette/issues/332","id":64747117,"number":332,"title":"Get Filesystem root dir","user":{"login":"MAXakaWIZARD","id":1138453,"avatar_url":"https://avatars.githubusercontent.com/u/1138453?v=3","gravatar_id":"","url":"https://api.github.com/users/MAXakaWIZARD","html_url":"https://github.com/MAXakaWIZARD","followers_url":"https://api.github.com/users/MAXakaWIZARD/followers","following_url":"https://api.github.com/users/MAXakaWIZARD/following{/other_user}","gists_url":"https://api.github.com/users/MAXakaWIZARD/gists{/gist_id}","starred_url":"https://api.github.com/users/MAXakaWIZARD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MAXakaWIZARD/subscriptions","organizations_url":"https://api.github.com/users/MAXakaWIZARD/orgs","repos_url":"https://api.github.com/users/MAXakaWIZARD/repos","events_url":"https://api.github.com/users/MAXakaWIZARD/events{/privacy}","received_events_url":"https://api.github.com/users/MAXakaWIZARD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-27T11:56:56Z","updated_at":"2015-11-26T08:46:21Z","closed_at":null,"body":"It is often useful to be able to get root dir (`Local` and `FTP` adapters, `directory` property), but now it is possible only through Reflection API. What do you think guys, if I implement this? Maybe add a method `getRootDir` to `Adapter` interface and return `null` in adapters where root dir is unknown or is not relevant. Or add this method only to adapters where this makes sense (`Local` and `FTP`)."},"comment":{"url":"https://api.github.com/repos/KnpLabs/Gaufrette/issues/comments/159849533","html_url":"https://github.com/KnpLabs/Gaufrette/issues/332#issuecomment-159849533","issue_url":"https://api.github.com/repos/KnpLabs/Gaufrette/issues/332","id":159849533,"user":{"login":"andreaslarssen","id":3169836,"avatar_url":"https://avatars.githubusercontent.com/u/3169836?v=3","gravatar_id":"","url":"https://api.github.com/users/andreaslarssen","html_url":"https://github.com/andreaslarssen","followers_url":"https://api.github.com/users/andreaslarssen/followers","following_url":"https://api.github.com/users/andreaslarssen/following{/other_user}","gists_url":"https://api.github.com/users/andreaslarssen/gists{/gist_id}","starred_url":"https://api.github.com/users/andreaslarssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreaslarssen/subscriptions","organizations_url":"https://api.github.com/users/andreaslarssen/orgs","repos_url":"https://api.github.com/users/andreaslarssen/repos","events_url":"https://api.github.com/users/andreaslarssen/events{/privacy}","received_events_url":"https://api.github.com/users/andreaslarssen/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T08:46:20Z","updated_at":"2015-11-26T08:46:20Z","body":"@akd3vs: I'm using reflection as a workaround for now:\r\n\r\n```\r\n$adapter = $filesystem->getAdapter();\r\n$reflection = new \\ReflectionClass($adapter);\r\n$directory = $reflection->getProperty('directory');\r\n$directory->setAccessible(true);\r\n$directory->getValue($adapter)\r\n```"}}