Skip to content

Instantly share code, notes, and snippets.

@AhnSeongHyun
Created November 5, 2012 05:22
correctDirectoryPath
public static String correctDirectoryPath(String directoryPath)
{
if (directoryPath.charAt(directoryPath.length() - 1) != File.separatorChar)
{
directoryPath += File.separator;
}
return directoryPath;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment