{"action":"created","issue":{"url":"https://api.github.com/repos/zzzprojects/Z.ExtensionMethods/issues/19","repository_url":"https://api.github.com/repos/zzzprojects/Z.ExtensionMethods","labels_url":"https://api.github.com/repos/zzzprojects/Z.ExtensionMethods/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/zzzprojects/Z.ExtensionMethods/issues/19/comments","events_url":"https://api.github.com/repos/zzzprojects/Z.ExtensionMethods/issues/19/events","html_url":"https://github.com/zzzprojects/Z.ExtensionMethods/issues/19","id":393077623,"node_id":"MDU6SXNzdWUzOTMwNzc2MjM=","number":19,"title":"FileInfo.ExtractGZipToDirectory Not Working","user":{"login":"adamfisher","id":1834711,"node_id":"MDQ6VXNlcjE4MzQ3MTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1834711?v=4","gravatar_id":"","url":"https://api.github.com/users/adamfisher","html_url":"https://github.com/adamfisher","followers_url":"https://api.github.com/users/adamfisher/followers","following_url":"https://api.github.com/users/adamfisher/following{/other_user}","gists_url":"https://api.github.com/users/adamfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/adamfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamfisher/subscriptions","organizations_url":"https://api.github.com/users/adamfisher/orgs","repos_url":"https://api.github.com/users/adamfisher/repos","events_url":"https://api.github.com/users/adamfisher/events{/privacy}","received_events_url":"https://api.github.com/users/adamfisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"JonathanMagnan","id":23240780,"node_id":"MDQ6VXNlcjIzMjQwNzgw","avatar_url":"https://avatars0.githubusercontent.com/u/23240780?v=4","gravatar_id":"","url":"https://api.github.com/users/JonathanMagnan","html_url":"https://github.com/JonathanMagnan","followers_url":"https://api.github.com/users/JonathanMagnan/followers","following_url":"https://api.github.com/users/JonathanMagnan/following{/other_user}","gists_url":"https://api.github.com/users/JonathanMagnan/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanMagnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanMagnan/subscriptions","organizations_url":"https://api.github.com/users/JonathanMagnan/orgs","repos_url":"https://api.github.com/users/JonathanMagnan/repos","events_url":"https://api.github.com/users/JonathanMagnan/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanMagnan/received_events","type":"User","site_admin":false},"assignees":[{"login":"JonathanMagnan","id":23240780,"node_id":"MDQ6VXNlcjIzMjQwNzgw","avatar_url":"https://avatars0.githubusercontent.com/u/23240780?v=4","gravatar_id":"","url":"https://api.github.com/users/JonathanMagnan","html_url":"https://github.com/JonathanMagnan","followers_url":"https://api.github.com/users/JonathanMagnan/followers","following_url":"https://api.github.com/users/JonathanMagnan/following{/other_user}","gists_url":"https://api.github.com/users/JonathanMagnan/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanMagnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanMagnan/subscriptions","organizations_url":"https://api.github.com/users/JonathanMagnan/orgs","repos_url":"https://api.github.com/users/JonathanMagnan/repos","events_url":"https://api.github.com/users/JonathanMagnan/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanMagnan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-12-20T14:48:04Z","updated_at":"2018-12-21T13:09:31Z","closed_at":null,"author_association":"NONE","body":"I was unable to get `ExtractGZipToDirectory()` working. It just created an empty file when I tried to decompress it. I ended up creating this method which did work:\r\n\r\n```\r\nprivate static FileInfo DecompressGZipFile(this FileInfo compressedFilePath)\r\n{\r\n\tusing (var fs = compressedFilePath.OpenRead())\r\n\t{\r\n\t\tusing (var zipStream = new GZipStream(fs, CompressionMode.Decompress))\r\n\t\t{\r\n\t\t\tvar buffer1 = compressedFilePath.Name.Split('.');\r\n\t\t\tvar buffer2 = buffer1[0] + \".\" + buffer1[1];\r\n\t\t\tvar filePath = Path.Combine(compressedFilePath.DirectoryName, buffer2);\r\n\r\n\t\t\tusing (var fOutStream = new FileStream(filePath, FileMode.Create, FileAccess.Write))\r\n\t\t\t{\r\n\t\t\t\tvar tempBytes = new byte[4096];\r\n\t\t\t\tint i;\r\n\t\t\t\twhile ((i = zipStream.Read(tempBytes, 0, tempBytes.Length)) != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tfOutStream.Write(tempBytes, 0, i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn new FileInfo(filePath);\r\n\t\t}\r\n\t}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/zzzprojects/Z.ExtensionMethods/issues/comments/449384264","html_url":"https://github.com/zzzprojects/Z.ExtensionMethods/issues/19#issuecomment-449384264","issue_url":"https://api.github.com/repos/zzzprojects/Z.ExtensionMethods/issues/19","id":449384264,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTM4NDI2NA==","user":{"login":"JonathanMagnan","id":23240780,"node_id":"MDQ6VXNlcjIzMjQwNzgw","avatar_url":"https://avatars0.githubusercontent.com/u/23240780?v=4","gravatar_id":"","url":"https://api.github.com/users/JonathanMagnan","html_url":"https://github.com/JonathanMagnan","followers_url":"https://api.github.com/users/JonathanMagnan/followers","following_url":"https://api.github.com/users/JonathanMagnan/following{/other_user}","gists_url":"https://api.github.com/users/JonathanMagnan/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanMagnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanMagnan/subscriptions","organizations_url":"https://api.github.com/users/JonathanMagnan/orgs","repos_url":"https://api.github.com/users/JonathanMagnan/repos","events_url":"https://api.github.com/users/JonathanMagnan/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanMagnan/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T13:09:31Z","updated_at":"2018-12-21T13:09:31Z","author_association":"MEMBER","body":"Hello @adamfisher , @prasadtelkikar ,\r\n\r\nThank you for reporting and your interest.\r\n\r\nIt has been a long time since the last time we really make a big change to this project. However, I still use it on a daily usage so that's for sure a project I would like to keep up to date.\r\n\r\nI will discuss with my team and check about the future of this project and what we could plan for it.\r\n\r\nBest Regards,\r\n\r\nJonathan"}}
{"actor":{"display_login":"JonathanMagnan"}}