src/main/java/com/upplication/s3fs/channels/S3FileChannel.java
private void sync() throws IOException {
        S3Uploader.builder()
                .path(path)
                .metadata(new ObjectMetadata())
                .in(Files.newInputStream(tempFile))
                .size(Files.size(tempFile))
                .build()
                .upload();
    }
/**
     * try to sync the temp file with the remote s3 path.
     *
     * @throws IOException if the tempFile fails to open a newInputStream
     */
try to sync the temp file with the remote s3 path.
@throws IOException if the tempFile fails to open a newInputStream
try to sync the temp file with the remote s3 path . @throws IOException if the tempFile fails to open a newInputStream
private void sync() throws IOException {
        S3Uploader.builder()
                .path(path)
                .metadata(new ObjectMetadata())
                .in(Files.newInputStream(tempFile))
                .size(Files.size(tempFile))
                .build()
                .upload();
    }
private void sync ( ) throws IOException { S3Uploader . builder ( ) . path ( path ) . metadata ( new ObjectMetadata ( ) ) . in ( Files . newInputStream ( tempFile ) ) . size ( Files . size ( tempFile ) ) . build ( ) . upload ( ) ; }
try to sync the temp file with the remote s3 path.
try to sync the temp file with the remote s3 path .