Java File Path Create buildPath(String path, String file)

Here you can find the source of buildPath(String path, String file)

Description

build Path

License

Open Source License

Declaration

private static String buildPath(String path, String file) 

Method Source Code

//package com.java2s;
/**/*  ww  w . j a v a 2 s  .  co m*/
 * License: https://github.com/votingsystem/votingsystem/wiki/Licencia
 */

public class Main {
    private static String buildPath(String path, String file) {
        if (path == null || path.isEmpty())
            return file;
        else
            return path + "/" + file;
    }
}

Related

  1. buildPath(final String... tokens)
  2. buildPath(Integer sAccountId, String objectPath)
  3. buildPath(long id, boolean justDir)
  4. buildPath(String first, String... parts)
  5. buildPath(String part1, String part2)
  6. buildPath(String... paths)
  7. buildPath(String... strings)
  8. buildPath(String[] seperatedName)
  9. buildPathArray(String xpath)