Java Path Combine combine(String directory, String filename)

Here you can find the source of combine(String directory, String filename)

Description

combine

License

Open Source License

Declaration

public static String combine(String directory, String filename) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

public class Main {
    public static String combine(String directory, String filename) {
        if (!directory.endsWith("/") && !directory.endsWith("\\"))
            directory = directory + "/";
        String path = directory + filename;
        return path;
    }/*from www  .  j  a va 2s . c om*/
}

Related

  1. combine(final String path, final String suffix)
  2. combine(final String path1, final String path2)
  3. combineDisplayPaths(String parent_display, String display_path)
  4. combinePath(java.io.File parentDir, String... childDirs)
  5. combinePath(String basePath, String withPath)
  6. combinePath(String parent, String child)