{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/33582","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/33582/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/33582/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/33582/events","html_url":"https://github.com/dotnet/corefx/issues/33582","id":382009504,"node_id":"MDU6SXNzdWUzODIwMDk1MDQ=","number":33582,"title":"Does FileInfo.Length always return the actual filelength of a file","user":{"login":"rahuldutta90","id":28450442,"node_id":"MDQ6VXNlcjI4NDUwNDQy","avatar_url":"https://avatars2.githubusercontent.com/u/28450442?v=4","gravatar_id":"","url":"https://api.github.com/users/rahuldutta90","html_url":"https://github.com/rahuldutta90","followers_url":"https://api.github.com/users/rahuldutta90/followers","following_url":"https://api.github.com/users/rahuldutta90/following{/other_user}","gists_url":"https://api.github.com/users/rahuldutta90/gists{/gist_id}","starred_url":"https://api.github.com/users/rahuldutta90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahuldutta90/subscriptions","organizations_url":"https://api.github.com/users/rahuldutta90/orgs","repos_url":"https://api.github.com/users/rahuldutta90/repos","events_url":"https://api.github.com/users/rahuldutta90/events{/privacy}","received_events_url":"https://api.github.com/users/rahuldutta90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-18T22:49:07Z","updated_at":"2018-11-19T02:49:31Z","closed_at":null,"author_association":"NONE","body":"I have a library targetting netcoreapp1.1. I have this code snippet:\r\n\r\nDirectoryInfo dir = new DirectoryInfo(SourcePath);\r\nIEnumerable<FileInfo> enumFiles = dir.EnumerateFiles();\r\nforeach (var file in enumFiles)\r\n                    {\r\nUse file.length\r\n}\r\n\r\nIs it possible for the file.length to be returned 0 for files with sizes ranging from 4MB to 70MB?"},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/439756198","html_url":"https://github.com/dotnet/corefx/issues/33582#issuecomment-439756198","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/33582","id":439756198,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTc1NjE5OA==","user":{"login":"danmosemsft","id":6385855,"node_id":"MDQ6VXNlcjYzODU4NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/6385855?v=4","gravatar_id":"","url":"https://api.github.com/users/danmosemsft","html_url":"https://github.com/danmosemsft","followers_url":"https://api.github.com/users/danmosemsft/followers","following_url":"https://api.github.com/users/danmosemsft/following{/other_user}","gists_url":"https://api.github.com/users/danmosemsft/gists{/gist_id}","starred_url":"https://api.github.com/users/danmosemsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmosemsft/subscriptions","organizations_url":"https://api.github.com/users/danmosemsft/orgs","repos_url":"https://api.github.com/users/danmosemsft/repos","events_url":"https://api.github.com/users/danmosemsft/events{/privacy}","received_events_url":"https://api.github.com/users/danmosemsft/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T02:49:31Z","updated_at":"2018-11-19T02:49:31Z","author_association":"MEMBER","body":"Hello @rahuldutta90 it should be accurate. In what circumstances are you seeing it return nonzero for a file with nonzero size?"}}
{"actor":{"display_login":"danmosemsft"}}