removes all extensions from path if they exist . pathutils.removeextention `` file.txt '' , '' . txt '' = file pathutils.removeextention `` file.txt.gpg '' , '' . txt '' , '' . gpg '' = file pathutils.removeextention `` file '' , '' . txt '' = file pathutils.removeextention `` file.txt '' , '' . tar.gz '' = file.txt pathutils.removeextention `` file.txt.gpg '' , '' . txt '' = file.gpg pathutils.removeextention `` file.txt.gpg '' , '' . gpg '' = file.txt concode_field_sep Pattern GLOB_TOKENS concode_field_sep void deleteEmptyParentDirectories concode_elem_sep Path getPathWithoutSchemeAndAuthority concode_elem_sep boolean isGlob concode_elem_sep boolean isAncestor concode_elem_sep Path relativizePath concode_elem_sep Path combinePaths concode_elem_sep Path addExtension concode_elem_sep boolean isAbsoluteAndSchemeAuthorityNull concode_elem_sep Path withoutLeadingSeparator concode_elem_sep Path mergePaths concode_elem_sep Path deepestNonGlobPath concode_elem_sep boolean compareWithoutSchemeAndAuthority
Path function ( Path arg0 , String ... arg1 ) { String loc0 = arg0 . toString ( ) ; for ( String loc1 : arg1 ) { loc0 = StringUtils . remove ( loc0 , loc1 ) ; } return new Path ( loc0 ) ; }