Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
482e74b
Enable CLI multiple SOURCES for ``stor cp``
kristjaneerik Jul 7, 2017
5ac32db
Let `stor cat` take multiple PATHs
kristjaneerik Jul 7, 2017
19c01e7
Let `stor rm` take multiple PATHs
kristjaneerik Jul 8, 2017
c693130
``stor ls`` defaults to ./
kristjaneerik Jul 8, 2017
c1b400b
initial pass at ``stor ls`` enhancements
kristjaneerik Jul 8, 2017
7c22686
grabbing stat info for swift and local
kristjaneerik Jul 8, 2017
c91a0e5
one fewer stat() call for swift?
kristjaneerik Jul 8, 2017
a68a0bb
stat for s3?
kristjaneerik Jul 8, 2017
fae9e6d
sorting failed when dirs present, fixed
kristjaneerik Jul 8, 2017
f4eb09b
add stor swift get-X
kristjaneerik Jul 8, 2017
06d0c84
stor swift get-url <path>
kristjaneerik Jul 8, 2017
e795e6e
flake8
kristjaneerik Jul 8, 2017
7858500
show total size of listed files if outputting to terminal
kristjaneerik Jul 8, 2017
7eab5e8
Add longform capability to list, walkfiles
kristjaneerik Jul 8, 2017
f100eaf
I don't actually know how to make s3 http urls
kristjaneerik Jul 9, 2017
b88c37b
--tabs and --relative-time for stor ls
kristjaneerik Jul 9, 2017
ad1ec6b
flake8
kristjaneerik Jul 10, 2017
93d71c7
default to long human readable format
kristjaneerik Jul 10, 2017
d164be3
use DIR for non-file mimetype
kristjaneerik Jul 10, 2017
adbfcda
Allow different Path types to have their formats
kristjaneerik Jul 10, 2017
4070ed0
add ETag/hash for s3 listings
kristjaneerik Jul 10, 2017
9625dc3
misc tweaks
kristjaneerik Jul 10, 2017
5c13e09
Merge branch 'master' into multifile_cli
kristjaneerik Dec 11, 2017
401aa57
I believe this was a typo
kristjaneerik Dec 11, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ positional arguments:

list List contents using the path as a prefix.
ls List path as a directory.
cp Alias for copy.
cp Copy a source to a destination path.
cpto Copy a source to a destination path. Note that here
DEST comes before SOURCE(s).
rm Remove file at a path.
walkfiles List all files under a path that match an optional
pattern.
Expand All @@ -44,6 +46,7 @@ positional arguments:
pwd Get the present working directory of a service or all
current directories.
clear Clear current directories of a specified service.
swift Get Swift-specific information.
```

You can `ls` local and remote directories
Expand Down
4 changes: 2 additions & 2 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ To run all tests, type::

make test

In order to run swift integration tests, create a swift tenant called ``AUTH_swft_test`` and provide environment variables for a user that has permissions to write to that tenant (``SWIFT_TEST_USERNAME`` and ``SWIFT_TEST_PASSWORD``). Also set the swift auth url environment variable (``OS_AUTH_URL``)
In order to run swift integration tests, create a swift tenant called ``AUTH_swft_test`` (override with the ``SWIFT_TEST_TENANT`` environment variable) and provide environment variables for a user that has permissions to write to that tenant (``SWIFT_TEST_USERNAME`` and ``SWIFT_TEST_PASSWORD``). Also set the swift auth url environment variable (``OS_AUTH_URL``). You can set the prefix of the temporary test container via the ``SWIFT_TEST_CONTAINER_PREFIX`` environment variable.

In order to run S3 integration tests, create a ``stor-test-bucket`` S3 bucket and provide environment variables for an AWS user that has permissions to write to it (``AWS_TEST_ACCESS_KEY_ID`` and ``AWS_ACCESS_KEY_ID``).
In order to run S3 integration tests, create a ``stor-test-bucket`` S3 bucket and provide environment variables for an AWS user that has permissions to write to it (``AWS_TEST_ACCESS_KEY_ID`` and ``AWS_TEST_SECRET_ACCESS_KEY``).

Code Quality
------------
Expand Down
8 changes: 8 additions & 0 deletions stor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
import pkg_resources

from stor.utils import copy
from stor.utils import copy_multiple
from stor.utils import copytree
from stor.utils import copytree_multiple
from stor.utils import remove_multiple
from stor.utils import rmtree_multiple
from stor.utils import is_filesystem_path
from stor.utils import is_swift_path
from stor.utils import NamedTemporaryDirectory
Expand Down Expand Up @@ -132,9 +136,13 @@ def path(pth): # pragma: no cover
'ismount',
'getsize',
'copy',
'copy_multiple',
'copytree',
'copytree_multiple',
'remove',
'remove_multiple',
'rmtree',
'rmtree_multiple',
'walkfiles',
'is_filesystem_path',
'is_swift_path',
Expand Down
Loading