public FormInputValidator directoryEmpty ( VisValidatableTextField field , String errorMsg ) { DirectoryContentValidator validator = new DirectoryContentValidator ( errorMsg , true ) ; field . addValidator ( validator ) ; add ( field ) ; return validator ; }
Validates if relative path entered in text field points to an existing and empty directory .