tvaultapi/src/main/java/com/tmobile/cso/vault/api/controller/ControllerUtil.java
public static boolean isValidFolderPath(String path){
		String paths[] =  path.split("/");
		if(paths.length>=3){
			return true;
		}else{
			return false;
		}
	}
/**
	 * To check if the path of write secret api contains a folder
	 * @param path
	 * @return
	 */
To check if the path of write secret api contains a folder
@param path
@return
To check if the path of write secret api contains a folder @param path @return
public static boolean isValidFolderPath(String path){
		String paths[] =  path.split("/");
		if(paths.length>=3){
			return true;
		}else{
			return false;
		}
	}
public static boolean isValidFolderPath ( String path ) { String paths [ ] = path . split ( "/" ) ; if ( paths . length >= 3 ) { return true ; } else { return false ; } }
To check if the path of write secret api contains a folder
 @param path
 @return
To check if the path of write secret api contains a folder @param path @return