{"action":"opened","issue":{"url":"https://api.github.com/repos/chocolatey/choco/issues/156","labels_url":"https://api.github.com/repos/chocolatey/choco/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/choco/issues/156/comments","events_url":"https://api.github.com/repos/chocolatey/choco/issues/156/events","html_url":"https://github.com/chocolatey/choco/issues/156","id":60318889,"number":156,"title":"When using Write-FileUpdateLog to access long path, it's failed when the path more than 256 characters.","user":{"login":"lygstate","id":121040,"avatar_url":"https://avatars.githubusercontent.com/u/121040?v=3","gravatar_id":"","url":"https://api.github.com/users/lygstate","html_url":"https://github.com/lygstate","followers_url":"https://api.github.com/users/lygstate/followers","following_url":"https://api.github.com/users/lygstate/following{/other_user}","gists_url":"https://api.github.com/users/lygstate/gists{/gist_id}","starred_url":"https://api.github.com/users/lygstate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lygstate/subscriptions","organizations_url":"https://api.github.com/users/lygstate/orgs","repos_url":"https://api.github.com/users/lygstate/repos","events_url":"https://api.github.com/users/lygstate/events{/privacy}","received_events_url":"https://api.github.com/users/lygstate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-09T09:41:54Z","updated_at":"2015-03-09T09:41:54Z","closed_at":null,"body":"When I install mongodb with:\r\n```\r\nchoco install -y mongodb\r\n```\r\nThe following error appeared\r\n\r\n```\r\nGet-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the director\r\ny name must be less than 248 characters.\r\nAt C:\\ProgramData\\chocolatey\\chocolateyinstall\\helpers\\functions\\Write-FileUpdateLog.ps1:12 char:23\r\n\r\n$originalContents = Get-ChildItem -Recurse $locationToMonitor | Select-Object ...\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nCategoryInfo : ReadError: (C:\\CI-Cor\\kexin...modules\\bl\\test:String) [Get-ChildItem], PathTooLongException\r\nFullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand\r\n```"}}