I have a folder that I download from Dropbox using a shared link (not a public link) and curl. It loads as a ZIP folder. I need to unzip this folder using unpacking in a bash shell script. Whenever the folder is unpacked, I get the following errors:
warning: stripped absolute path spec from / mapname: conversion of failed
Just to make sure it wasn't a strange waving problem, I downloaded the folder directly from Dropbox and tried it again. I have the same error. All files and subdirectories appear, and there seems to be no problem with their integrity. Unpacking any folder with a graphical interface does not result in error messages.
I ran unzip -l and noticed an odd first entry:
Length Method Size Ratio Date Time CRC-32 Name -------- ------ ------- ----- ---- ---- ------ ---- 0 Defl:N 2 0% 01-23-14 19:38 00000000 /
I believe that this particular empty directory causes problems. My question is, is there a way to ignore this empty directory or suppress error messages (I tried -qq with no luck)? Or is there something I'm doing wrong / missing?
I tested this on Mac OSX 10.9.1 and Ubuntu Linux (Version Unknown) with the same results.
EDIT: I also tested it with jar xf and it works fine without any errors. Running jar xvf shows that it is created: / . I still think this is an empty, unnamed directory causing the problem, but I cannot force my syntax correctly so that unzip ignores it. I would just use jar, but I need to specify the output directory.
bash curl warnings unzip directory-structure
USCFan13
source share