Project

General

Profile

Actions

Bug #4957

open

[SDKs] arv keep put blows up when trying to put a danging symlink

Added by Ward Vandewege over 9 years ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
Story points:
0.5
Release:
Release relationship:
Auto

Description

For example:

$ arv keep put mirobot_updater
Traceback (most recent call last):
  File "/usr/local/bin/arv-put", line 4, in <module>
    main()
  File "/usr/local/lib/python2.7/dist-packages/arvados/commands/put.py", line 411, in main
    bytes_expected = expected_bytes_for(args.paths)
  File "/usr/local/lib/python2.7/dist-packages/arvados/commands/put.py", line 333, in expected_bytes_for
    bytesum += os.path.getsize(os.path.join(path, filename))
  File "/usr/lib/python2.7/genericpath.py", line 49, in getsize
    return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: 'mirobot_updater/resources/app/node_modules/.bin/serialportlist'

and

$ ls mirobot_updater/resources/app/node_modules/.bin/serialportlist -laF
lrwxrwxrwx 1 wardtest wardtest 35 Jan 10 19:41 mirobot_updater/resources/app/node_modules/.bin/serialportlist -> ../serialport/bin/serialportList.js

arv keep put should just skip things it can not save, and ideally list at the end of the run which file(s) it skipped.


Related issues

Related to Arvados - Idea #3815: [SDK] arv-put supports --ignore-symlinksResolvedActions
Actions

Also available in: Atom PDF