{"action":"created","issue":{"url":"https://api.github.com/repos/tomusdrw/grunt-sync/issues/38","labels_url":"https://api.github.com/repos/tomusdrw/grunt-sync/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/tomusdrw/grunt-sync/issues/38/comments","events_url":"https://api.github.com/repos/tomusdrw/grunt-sync/issues/38/events","html_url":"https://github.com/tomusdrw/grunt-sync/issues/38","id":111067981,"number":38,"title":"Crash if no files were modified","user":{"login":"corvae","id":7141060,"avatar_url":"https://avatars.githubusercontent.com/u/7141060?v=3","gravatar_id":"","url":"https://api.github.com/users/corvae","html_url":"https://github.com/corvae","followers_url":"https://api.github.com/users/corvae/followers","following_url":"https://api.github.com/users/corvae/following{/other_user}","gists_url":"https://api.github.com/users/corvae/gists{/gist_id}","starred_url":"https://api.github.com/users/corvae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corvae/subscriptions","organizations_url":"https://api.github.com/users/corvae/orgs","repos_url":"https://api.github.com/users/corvae/repos","events_url":"https://api.github.com/users/corvae/events{/privacy}","received_events_url":"https://api.github.com/users/corvae/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-12T22:30:51Z","updated_at":"2015-10-14T00:52:34Z","closed_at":"2015-10-13T17:44:14Z","body":"My sync task looks like this\r\n\r\n    sync: {\r\n        main: {\r\n\t    files: [{\r\n\t        cwd: '<%= pkg.destination %>',\r\n\t\tsrc: [ '**' ],\r\n\t        dest: '<%= deployDir %>',\r\n\t     }],\r\n\t     verbose: true, \r\n\t     failOnError: true,\r\n             compareUsing: \"md5\"\r\n        }\r\n    }\r\n\r\nwhich works fine if there has been changes. The pkg.destination is a local directory, and deployDir is a network address.\r\n\r\nIf no files have been changed, the prompt will become unresponsive after listing all the files (ran with 'grunt syncTask -v'). I have to kill the node process manually.  \r\n\r\nWhen I ran sync with 2 modified files (and 2 empty folders to create in dest), it took over 5 minues.\r\n\r\n    Execution Time (2015-10-12 21:27:40 UTC)\r\n    loading tasks      873ms  0%\r\n    sync:main       5m 31.4s     ████████████████████████████████████ 100%\r\n    Total 5m 32.3s\r\n\r\nI guess most people use this with watch, so it's wouldn't really be as much of an issue.  But without using watch, is this actually a problem with grunt-sync, or perhaps an issue with copying over a slow network?"},"comment":{"url":"https://api.github.com/repos/tomusdrw/grunt-sync/issues/comments/147894049","html_url":"https://github.com/tomusdrw/grunt-sync/issues/38#issuecomment-147894049","issue_url":"https://api.github.com/repos/tomusdrw/grunt-sync/issues/38","id":147894049,"user":{"login":"tomusdrw","id":581548,"avatar_url":"https://avatars.githubusercontent.com/u/581548?v=3","gravatar_id":"","url":"https://api.github.com/users/tomusdrw","html_url":"https://github.com/tomusdrw","followers_url":"https://api.github.com/users/tomusdrw/followers","following_url":"https://api.github.com/users/tomusdrw/following{/other_user}","gists_url":"https://api.github.com/users/tomusdrw/gists{/gist_id}","starred_url":"https://api.github.com/users/tomusdrw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomusdrw/subscriptions","organizations_url":"https://api.github.com/users/tomusdrw/orgs","repos_url":"https://api.github.com/users/tomusdrw/repos","events_url":"https://api.github.com/users/tomusdrw/events{/privacy}","received_events_url":"https://api.github.com/users/tomusdrw/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T00:52:34Z","updated_at":"2015-10-14T00:52:34Z","body":"Hi!\r\nGreat that you've managed to solve this. Indeed slow network connection can be a serious problem - especially in first phase when `glob` is trying to discover the whole file structure on remote destination."}}