1. 30 Oct, 2015 4 commits
  2. 29 Oct, 2015 3 commits
  3. 12 Oct, 2015 2 commits
  4. 24 Sep, 2015 3 commits
  5. 08 Sep, 2015 3 commits
    • Stavros Sachtouris's avatar
      Use a new logging level for verbosity · dfe824dd
      Stavros Sachtouris authored
      The new logging level DEBUGV is set in "kamaki.clients" and it is
      used to log verbose information related to ReST communication.
      
      The CLI is changed accordingly.
      dfe824dd
    • Stavros Sachtouris's avatar
      Raise SSL error on IOError due to SSL cred. files · 3ef7651b
      Stavros Sachtouris authored
      The problem was noted in OS X: when an SSL credential file (e.g.,
      the certificates bundle) does not exist or is not provided, the
      ssl.wrap_socket method fails with an IOError, while in other
      systems it fails with an SSLError.
      
      In this commit, the IOError is examined and, if some conditions
      hold (errno==2, no SSL credential files or files do not exist), an
      SSLError is raised.
      3ef7651b
    • Stavros Sachtouris's avatar
      Bump version to 0.13.5 · 18abd633
      Stavros Sachtouris authored
      18abd633
  6. 05 Jun, 2015 2 commits
  7. 04 Jun, 2015 3 commits
  8. 04 May, 2015 5 commits
  9. 16 Mar, 2015 3 commits
  10. 02 Mar, 2015 4 commits
  11. 27 Feb, 2015 2 commits
  12. 26 Feb, 2015 6 commits
    • Dimitris Aragiorgis's avatar
      rwb+ mode is not a valid mode for open · 22dedcbf
      Dimitris Aragiorgis authored
      Windows does not allow opening files with mode 'rwb+'. Linux
      does but still this is not a proper mode to use.
      
      We should open files with mode 'rb+' in case we resume download
      and the file already exists and with mode 'wb+' otherwise.
      Signed-off-by: default avatarDimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
      22dedcbf
    • Dimitris Aragiorgis's avatar
      Fix makedirs() usage · 41e4d5b5
      Dimitris Aragiorgis authored
      In we run:
      
        os.makedirs("dir1")
        os.makedirs("dir1")
      
      we get OSError: [Errno 17] File exists: 'dir1'
      
      Contrary to that if we run:
      
        os.makedirs("dir1")
        os.makedirs("dir1/dir2")
      
      it succeeds.
      
      Therefore we must check if our target directory exists before
      running makedirs.
      Signed-off-by: default avatarDimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
      41e4d5b5
    • Giorgos Korfiatis's avatar
      Merge pull request #100 from dimara/hotfix-0.13.2 · ffc3cf07
      Giorgos Korfiatis authored
      Fix windows directory handing during recursive uploads and downloads 
      ffc3cf07
    • Dimitris Aragiorgis's avatar
      ceb14bfe
    • Dimitris Aragiorgis's avatar
      scripts: Verify/Fix remote directory structure · 4b609746
      Dimitris Aragiorgis authored
      A combination of kamaki and Pithos UI usage can lead to a
      Pithos state that is inconsistent and does not match
      ordinary directory structures.
      
      Specifically, if we have a file under .\dir1\dir2\dir3 and
      we upload dir1 recursively from a windows machine, pithos
      objects will look like this:
      
          D dir1/
        10B dir1/dir2/dir3/file
          D dir1\dir2
          D dir1\dir2\dir3
      
      If we traverse the above file structure from Pithos UI two
      additional files will be created:
      
         0B dir1/dir2
         0B dir1/dir2/dir3
      
      The above is a buggy behavior.
      
      This patch introduces the 'kamaki scripts verifyfs' command.
      It fixes the above structure in the following manner:
      
       a) --fix-conflicts will prepare the directory structure
      to become consistent by renaming the conflicting objects via adding a
      special suffix to them (e.g "_orig_2015-01-02"). Conflicting objects are
      objects that already exist in Pithos as file objects but they should be
      directory objects instead.
      
       b) --fix-dir-names will rename all existing directory objects that
      contain backslashes in their names, replacing '\' with '/'.
      
       c) --fix-missing-dirs will create missing intermediate directory
      objects.
      
      The --yes option will bypass prompting the end user.
      Signed-off-by: default avatarDimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
      4b609746
    • Dimitris Aragiorgis's avatar
      Introduce the 'scripts' command namespace · eb5f6929
      Dimitris Aragiorgis authored
      This will be used for commands that don't fit exactly in the existing
      namespaces (file, image, container, etc.).
      
      Here we create a new package 'kamaki.cli.contrib' containing a 'scripts'
      module. We activate the new namespace by default.
      Signed-off-by: default avatarDimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
      eb5f6929