Skip to content

Filename too long when using download_file #3642

Answered by mdmintz
oooyiyangc asked this question in Q&A
Discussion options

You must be logged in to vote

You have to use save_file_as() so that you can rename the file to a legal size for your file system:

self.save_file_as(file_url, new_file_name, destination_folder=None)

Some other helpful ideas may be found here: s3tools/s3cmd#202 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oooyiyangc
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants