|
@ -16,8 +16,17 @@ public class SeaweedFilerTest { |
|
|
filerClient.mkdirs("/new_folder", 0755); |
|
|
filerClient.mkdirs("/new_folder", 0755); |
|
|
filerClient.touch("/new_folder/new_empty_file", 0755); |
|
|
filerClient.touch("/new_folder/new_empty_file", 0755); |
|
|
filerClient.touch("/new_folder/new_empty_file2", 0755); |
|
|
filerClient.touch("/new_folder/new_empty_file2", 0755); |
|
|
|
|
|
if(!filerClient.exists("/new_folder/new_empty_file")){ |
|
|
|
|
|
System.out.println("/new_folder/new_empty_file should exists"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
filerClient.rm("/new_folder/new_empty_file", false, true); |
|
|
filerClient.rm("/new_folder/new_empty_file", false, true); |
|
|
filerClient.rm("/new_folder", true, true); |
|
|
filerClient.rm("/new_folder", true, true); |
|
|
|
|
|
|
|
|
|
|
|
if(filerClient.exists("/new_folder/new_empty_file")){ |
|
|
|
|
|
System.out.println("/new_folder/new_empty_file should not exists"); |
|
|
|
|
|
} |
|
|
|
|
|
if(!filerClient.exists("/")){ |
|
|
|
|
|
System.out.println("/ should exists"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |