File: 03-test-put.sh

package info (click to toggle)
megatools 1.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 740 kB
  • sloc: ansic: 7,279; sh: 135; makefile: 3
file content (12 lines) | stat: -rwxr-xr-x 347 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
source ./config

megaput --help

megarm $ROPTS /Root/TestDir/test.dat /Root/TestDir/test2.dat /Root/TestDir/SubDir1/test2.dat

dd if=/dev/urandom of=test.dat bs=267257 count=1

megaput $OPTS --path /Root/TestDir test.dat
megaput $OPTS --path /Root/TestDir/test2.dat test.dat
megaput $OPTS --path /Root/TestDir/SubDir1/test2.dat test.dat