private String getSlashyPath(final String path) {
        String changedPath = path;
        if (File.separatorChar != '/')
            changedPath = changedPath.replace(File.separatorChar, '/');

        return changedPath;
    }
private String getSlashyPath ( final String path ) { String changedPath = path ; if ( File . separatorChar != '/' ) changedPath = changedPath . replace ( File . separatorChar , '/' ) ; return changedPath ; }
This solution is based on an absolute path