⚲
Project
General
Profile
Sign in
Register
Home
Projects
Documentation
Help
Search
:
Arvados
All Projects
Arvados
Activity
Roadmap
Backlogs
Issues
Wiki
Repository
Documentation
Download (488 Bytes)
Bug #7225
ยป 7225.py
Brett Smith
, 09/07/2015 01:53 PM
#!/usr/bin/env python
from
__future__
import
print_function
import
arvados
import
sys
if
len
(
sys
.
argv
)
<
2
:
print
(
"
Usage: 7225.py filename [filename ...]
"
)
sys
.
exit
(
2
)
out_coll
=
arvados
.
collection
.
Collection
()
for
in_name
in
sys
.
argv
[
1
:]:
with
out_coll
.
open
(
in_name
,
"
wb
"
)
as
writer
,
open
(
in_name
,
"
rb
"
)
as
reader
:
dat
=
reader
.
read
(
64
*
1024
)
while
dat
:
writer
.
write
(
dat
)
dat
=
reader
.
read
(
64
*
1024
)
print
(
out_coll
.
manifest_text
())
(1-1/1)
Loading...