I am using Apache Commons VFS (Virtual File System) to access some files through SFTP. Does anyone know how to check if an instance of org.apache.commons.vfs.FileContent is a folder?
If you mean checking FileObject, you can use [ FileObject.getType()] ( http://commons.apache.org/vfs/apidocs/org/apache/commons/vfs/FileObject.html#getType () . Given non-empty FileContent, you would always consider that this comes from the file .As the spec here says:
FileObject
FileObject.getType()
FileContent
: , , , . , .
Source: https://habr.com/ru/post/1712473/More articles:How to debug an application in a client environment. - debuggingSmart pointers. When, where and how? - c ++enable protection in ruby - ruby | fooobar.comA simple CSS problem: header text in the upper left corner, button in the upper right corner - htmlHelp with understanding C # code and porting to Objective-C - methodsHow to redirect to user error page using mod_rewrite based on 404 error - httpПроцесс TFS: Stop Team Build обновил сообщения поля Fixed In - tfsWhat files are needed for a Visual Studio project? - c #SSRS Grouping multiple tables based on Multi Value - parametersRecommendations for working with sandboxes? - phpAll Articles