Codename: rename methods to FileUtils.getPath and FileUtils.getPathDisplayName

This commit is contained in:
Jimmy Shih
2013-10-04 15:30:53 -07:00
parent 5f00430795
commit 4161f8ff56
14 changed files with 26 additions and 26 deletions
@@ -88,11 +88,11 @@ public class FileUtils {
}
/**
* Gets the directory display name.
* Gets the display name for a path on the external storage.
*
* @param components the components
*/
public static String getDirectoryDisplayName(String... components) {
public static String getPathDisplayName(String... components) {
StringBuilder dirNameBuilder = new StringBuilder();
dirNameBuilder.append(File.separatorChar);
dirNameBuilder.append(SDCARD_TOP_DIR);
@@ -103,14 +103,14 @@ public class FileUtils {
return dirNameBuilder.toString();
}
/**
* Gets the directory path.
* Gets a path on the external storage.
*
* @param components the components
*/
public static String getDirectoryPath(String... components) {
public static String getPath(String... components) {
StringBuilder dirNameBuilder = new StringBuilder();
dirNameBuilder.append(Environment.getExternalStorageDirectory());
dirNameBuilder.append(getDirectoryDisplayName(components));
dirNameBuilder.append(getPathDisplayName(components));
return dirNameBuilder.toString();
}