public static COSFileStatus createFileStatus ( Path keyPath , S3ObjectSummary summary , long blockSize ) { long size = summary . getSize ( ) ; return createFileStatus ( keyPath , objectRepresentsDirectory ( summary . getKey ( ) , size ) , size , summary . getLastModified ( ) , blockSize ) ; }
Create a files status instance from a listing .