{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":{"state":"open","open_issues":4,"url":"https://api.github.com/repos/gamerx/Backup/milestones/6","due_on":"2011-11-01T07:00:00Z","title":"Release v1.8.4","description":"Next release.","number":6,"creator":{"avatar_url":"https://secure.gravatar.com/avatar/ee5efc30e8bec53e4d76deb63af8b987?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ee5efc30e8bec53e4d76deb63af8b987","url":"https://api.github.com/users/gamerx","login":"gamerx","id":293107},"closed_issues":2,"created_at":"2011-10-18T13:30:19Z"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/bc8a4cedd1519cfeb060b911c6535f8a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"bc8a4cedd1519cfeb060b911c6535f8a","url":"https://api.github.com/users/DonutSeller","login":"DonutSeller","id":1195792},"assignee":null,"updated_at":"2011-11-16T12:13:09Z","labels":[{"name":"P3","color":"0b02e1","url":"https://api.github.com/repos/gamerx/Backup/labels/P3"}],"closed_at":null,"comments":3,"url":"https://api.github.com/repos/gamerx/Backup/issues/33","body":"Hi! I have Backup 1.8.3 and it works great. However, it backups the server every time a player disconnects, which is rather annoying. How can i fix this issue?\r\n\r\nThanks\r\nDonut Seller","html_url":"https://github.com/gamerx/Backup/issues/33","title":"Backup every time a player disconnects","number":33,"id":2240693,"created_at":"2011-11-15T06:51:14Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/ee5efc30e8bec53e4d76deb63af8b987?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ee5efc30e8bec53e4d76deb63af8b987","url":"https://api.github.com/users/gamerx","login":"gamerx","id":293107},"updated_at":"2011-11-16T12:13:09Z","url":"https://api.github.com/repos/gamerx/Backup/issues/comments/2758727","body":"private void cleanFolder(File backupDir) throws IOException {\r\n\r\n        // Get properties.\r\n        try {\r\n            final int maxBackups = settings.getIntProperty(\"maxbackups\");\r\n\r\n            // Store all backup files in an array.\r\n            File[] filesList = backupDir.listFiles();\r\n\r\n            if (filesList == null) {\r\n                LogUtils.sendLog(Level.SEVERE, \"Failed to list backup directory.\");\r\n                return;\r\n            }","id":2758727,"created_at":"2011-11-16T12:13:09Z"}}