Skip to content

Commit

Permalink
pipeline: Add stackoverflow link doc.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
chfoo committed Feb 22, 2015
1 parent a97fd36 commit e7af963
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pipeline/archivebot/dupespotter/dupes.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def set_old_url(self, digest, url):
return txn.put(digest, url.encode("utf-8"))

def fs_supports_sparse_files(self):
# http://stackoverflow.com/a/3212102/1524507
with tempfile.NamedTemporaryFile(dir=os.getcwd()) as file:
file.truncate(1000000)

Expand Down

0 comments on commit e7af963

Please sign in to comment.