{"action":"created","comment":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/comments/35584030","id":35584030,"diff_hunk":"@@ -70,4 +70,32 @@ public void changeLocalDirPermissionTests() throws IOException {\n     FileUtils.changeLocalFilePermission(mTestFolder.getRoot().getAbsolutePath(), \"744\");\n     Assert.assertTrue(tempFile.delete());\n   }\n+\n+  @Test\n+  public void moveFileTest() throws IOException {\n+    File fromFile = mTestFolder.newFile(\"from.txt\");\n+    File toFile = mTestFolder.newFile(\"to.txt\");\n+    // Move a file and verify\n+    FileUtils.move(fromFile, toFile);\n+    Assert.assertFalse(fromFile.exists());\n+    Assert.assertTrue(toFile.exists());\n+  }\n+\n+  @Test\n+  public void deleteFileTest() throws IOException {\n+    File tempFile = mTestFolder.newFile(\"toDelete.txt\");\n+    File tempFolder = mTestFolder.newFolder(\"temp-dir\");\n+    // Delete a file and a directory\n+    Assert.assertTrue(FileUtils.delete(tempFile));\n+    Assert.assertTrue(FileUtils.delete(tempFolder));\n+    Assert.assertFalse(tempFile.exists());\n+    Assert.assertFalse(tempFolder.exists());\n+  }\n+\n+  @Test\n+  public void deleteNoExistentFileTest() throws IOException {","path":"common/src/test/java/tachyon/util/io/FileUtilsTest.java","position":27,"original_position":27,"commit_id":"c841af3c02a4c312f69e1b414f69dc4ccd8d04b7","original_commit_id":"c841af3c02a4c312f69e1b414f69dc4ccd8d04b7","user":{"login":"miasantreble","id":12212793,"avatar_url":"https://avatars.githubusercontent.com/u/12212793?v=3","gravatar_id":"","url":"https://api.github.com/users/miasantreble","html_url":"https://github.com/miasantreble","followers_url":"https://api.github.com/users/miasantreble/followers","following_url":"https://api.github.com/users/miasantreble/following{/other_user}","gists_url":"https://api.github.com/users/miasantreble/gists{/gist_id}","starred_url":"https://api.github.com/users/miasantreble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miasantreble/subscriptions","organizations_url":"https://api.github.com/users/miasantreble/orgs","repos_url":"https://api.github.com/users/miasantreble/repos","events_url":"https://api.github.com/users/miasantreble/events{/privacy}","received_events_url":"https://api.github.com/users/miasantreble/received_events","type":"User","site_admin":false},"body":"I think ghostFile is an empty File instance which cannot tell the difference of file or dir until createNewFile() or mkdir() is called?","created_at":"2015-07-27T20:41:58Z","updated_at":"2015-07-27T20:41:58Z","html_url":"https://github.com/amplab/tachyon/pull/1183#discussion_r35584030","pull_request_url":"https://api.github.com/repos/amplab/tachyon/pulls/1183","_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments/35584030"},"html":{"href":"https://github.com/amplab/tachyon/pull/1183#discussion_r35584030"},"pull_request":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1183"}}},"pull_request":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/1183","id":40840869,"html_url":"https://github.com/amplab/tachyon/pull/1183","diff_url":"https://github.com/amplab/tachyon/pull/1183.diff","patch_url":"https://github.com/amplab/tachyon/pull/1183.patch","issue_url":"https://api.github.com/repos/amplab/tachyon/issues/1183","number":1183,"state":"open","locked":false,"title":"[TACHYON-699] Add FileUtils.delete() and test cases","user":{"login":"miasantreble","id":12212793,"avatar_url":"https://avatars.githubusercontent.com/u/12212793?v=3","gravatar_id":"","url":"https://api.github.com/users/miasantreble","html_url":"https://github.com/miasantreble","followers_url":"https://api.github.com/users/miasantreble/followers","following_url":"https://api.github.com/users/miasantreble/following{/other_user}","gists_url":"https://api.github.com/users/miasantreble/gists{/gist_id}","starred_url":"https://api.github.com/users/miasantreble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miasantreble/subscriptions","organizations_url":"https://api.github.com/users/miasantreble/orgs","repos_url":"https://api.github.com/users/miasantreble/repos","events_url":"https://api.github.com/users/miasantreble/events{/privacy}","received_events_url":"https://api.github.com/users/miasantreble/received_events","type":"User","site_admin":false},"body":"https://tachyon.atlassian.net/browse/TACHYON-699","created_at":"2015-07-25T18:11:35Z","updated_at":"2015-07-27T20:41:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18abd7804c7681939fb2ac4a33e3550c3d748f46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/tachyon/pulls/1183/commits","review_comments_url":"https://api.github.com/repos/amplab/tachyon/pulls/1183/comments","review_comment_url":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/tachyon/issues/1183/comments","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/c841af3c02a4c312f69e1b414f69dc4ccd8d04b7","head":{"label":"miasantreble:TACHYON-699","ref":"TACHYON-699","sha":"c841af3c02a4c312f69e1b414f69dc4ccd8d04b7","user":{"login":"miasantreble","id":12212793,"avatar_url":"https://avatars.githubusercontent.com/u/12212793?v=3","gravatar_id":"","url":"https://api.github.com/users/miasantreble","html_url":"https://github.com/miasantreble","followers_url":"https://api.github.com/users/miasantreble/followers","following_url":"https://api.github.com/users/miasantreble/following{/other_user}","gists_url":"https://api.github.com/users/miasantreble/gists{/gist_id}","starred_url":"https://api.github.com/users/miasantreble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miasantreble/subscriptions","organizations_url":"https://api.github.com/users/miasantreble/orgs","repos_url":"https://api.github.com/users/miasantreble/repos","events_url":"https://api.github.com/users/miasantreble/events{/privacy}","received_events_url":"https://api.github.com/users/miasantreble/received_events","type":"User","site_admin":false},"repo":{"id":36108171,"name":"tachyon","full_name":"miasantreble/tachyon","owner":{"login":"miasantreble","id":12212793,"avatar_url":"https://avatars.githubusercontent.com/u/12212793?v=3","gravatar_id":"","url":"https://api.github.com/users/miasantreble","html_url":"https://github.com/miasantreble","followers_url":"https://api.github.com/users/miasantreble/followers","following_url":"https://api.github.com/users/miasantreble/following{/other_user}","gists_url":"https://api.github.com/users/miasantreble/gists{/gist_id}","starred_url":"https://api.github.com/users/miasantreble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miasantreble/subscriptions","organizations_url":"https://api.github.com/users/miasantreble/orgs","repos_url":"https://api.github.com/users/miasantreble/repos","events_url":"https://api.github.com/users/miasantreble/events{/privacy}","received_events_url":"https://api.github.com/users/miasantreble/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miasantreble/tachyon","description":" A Reliable Memory Centric Distributed Storage System","fork":true,"url":"https://api.github.com/repos/miasantreble/tachyon","forks_url":"https://api.github.com/repos/miasantreble/tachyon/forks","keys_url":"https://api.github.com/repos/miasantreble/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miasantreble/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miasantreble/tachyon/teams","hooks_url":"https://api.github.com/repos/miasantreble/tachyon/hooks","issue_events_url":"https://api.github.com/repos/miasantreble/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/miasantreble/tachyon/events","assignees_url":"https://api.github.com/repos/miasantreble/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/miasantreble/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/miasantreble/tachyon/tags","blobs_url":"https://api.github.com/repos/miasantreble/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miasantreble/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miasantreble/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/miasantreble/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miasantreble/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/miasantreble/tachyon/languages","stargazers_url":"https://api.github.com/repos/miasantreble/tachyon/stargazers","contributors_url":"https://api.github.com/repos/miasantreble/tachyon/contributors","subscribers_url":"https://api.github.com/repos/miasantreble/tachyon/subscribers","subscription_url":"https://api.github.com/repos/miasantreble/tachyon/subscription","commits_url":"https://api.github.com/repos/miasantreble/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/miasantreble/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/miasantreble/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/miasantreble/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/miasantreble/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/miasantreble/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miasantreble/tachyon/merges","archive_url":"https://api.github.com/repos/miasantreble/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miasantreble/tachyon/downloads","issues_url":"https://api.github.com/repos/miasantreble/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/miasantreble/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/miasantreble/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/miasantreble/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miasantreble/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/miasantreble/tachyon/releases{/id}","created_at":"2015-05-23T05:25:18Z","updated_at":"2015-05-23T05:25:20Z","pushed_at":"2015-07-27T20:28:57Z","git_url":"git://github.com/miasantreble/tachyon.git","ssh_url":"git@github.com:miasantreble/tachyon.git","clone_url":"https://github.com/miasantreble/tachyon.git","svn_url":"https://github.com/miasantreble/tachyon","homepage":"http://tachyon-project.org","size":15609,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"amplab:master","ref":"master","sha":"18f22cc60facf69a9d779f11c368b2407c362fb0","user":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"repo":{"id":7276954,"name":"tachyon","full_name":"amplab/tachyon","owner":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amplab/tachyon","description":" A Reliable Memory Centric Distributed Storage System","fork":false,"url":"https://api.github.com/repos/amplab/tachyon","forks_url":"https://api.github.com/repos/amplab/tachyon/forks","keys_url":"https://api.github.com/repos/amplab/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amplab/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amplab/tachyon/teams","hooks_url":"https://api.github.com/repos/amplab/tachyon/hooks","issue_events_url":"https://api.github.com/repos/amplab/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/amplab/tachyon/events","assignees_url":"https://api.github.com/repos/amplab/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/amplab/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/amplab/tachyon/tags","blobs_url":"https://api.github.com/repos/amplab/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amplab/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amplab/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/amplab/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/amplab/tachyon/languages","stargazers_url":"https://api.github.com/repos/amplab/tachyon/stargazers","contributors_url":"https://api.github.com/repos/amplab/tachyon/contributors","subscribers_url":"https://api.github.com/repos/amplab/tachyon/subscribers","subscription_url":"https://api.github.com/repos/amplab/tachyon/subscription","commits_url":"https://api.github.com/repos/amplab/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/amplab/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/amplab/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/amplab/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/amplab/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/amplab/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amplab/tachyon/merges","archive_url":"https://api.github.com/repos/amplab/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amplab/tachyon/downloads","issues_url":"https://api.github.com/repos/amplab/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/amplab/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/amplab/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/amplab/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amplab/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/amplab/tachyon/releases{/id}","created_at":"2012-12-21T17:43:46Z","updated_at":"2015-07-26T11:07:30Z","pushed_at":"2015-07-27T20:16:24Z","git_url":"git://github.com/amplab/tachyon.git","ssh_url":"git@github.com:amplab/tachyon.git","clone_url":"https://github.com/amplab/tachyon.git","svn_url":"https://github.com/amplab/tachyon","homepage":"http://tachyon-project.org","size":37740,"stargazers_count":1481,"watchers_count":1481,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":568,"mirror_url":null,"open_issues_count":19,"forks":568,"open_issues":19,"watchers":1481,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1183"},"html":{"href":"https://github.com/amplab/tachyon/pull/1183"},"issue":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1183"},"comments":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1183/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1183/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1183/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/tachyon/statuses/c841af3c02a4c312f69e1b414f69dc4ccd8d04b7"}}}}