21c46b19f40939a7f2267d333cf4222ac40ba9bc,src/rastervision/filesystem/s3_filesystem.py,S3FileSystem,copy_to,#Any#Any#,90

Before Change


        parsed_uri = urlparse(dst_uri)
        if os.path.isfile(src_path):
            try:
                s3 = boto3.client("s3")
                s3.upload_file(src_path, parsed_uri.netloc,
                               parsed_uri.path[1:])
            except Exception as e:
                raise NotWritableError(

After Change



    @staticmethod
    def copy_to(src_path: str, dst_uri: str) -> None:
        s3 = S3FileSystem.get_session().client("s3")

        parsed_uri = urlparse(dst_uri)
        if os.path.isfile(src_path):
            try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: azavea/raster-vision
Commit Name: 21c46b19f40939a7f2267d333cf4222ac40ba9bc
Time: 2018-10-02
Author: rdemanuele@gmail.com
File Name: src/rastervision/filesystem/s3_filesystem.py
Class Name: S3FileSystem
Method Name: copy_to


Project Name: azavea/raster-vision
Commit Name: 21c46b19f40939a7f2267d333cf4222ac40ba9bc
Time: 2018-10-02
Author: rdemanuele@gmail.com
File Name: src/rastervision/filesystem/s3_filesystem.py
Class Name: S3FileSystem
Method Name: read_bytes


Project Name: azavea/raster-vision
Commit Name: 21c46b19f40939a7f2267d333cf4222ac40ba9bc
Time: 2018-10-02
Author: rdemanuele@gmail.com
File Name: src/rastervision/filesystem/s3_filesystem.py
Class Name: S3FileSystem
Method Name: write_bytes


Project Name: azavea/raster-vision
Commit Name: 21c46b19f40939a7f2267d333cf4222ac40ba9bc
Time: 2018-10-02
Author: rdemanuele@gmail.com
File Name: src/rastervision/filesystem/s3_filesystem.py
Class Name: S3FileSystem
Method Name: copy_from