[Server-devel] PDF resources in public folders not opening in Reader

James Cameron quozl at laptop.org
Fri Jun 18 21:39:31 EDT 2010


On Sat, Jun 19, 2010 at 07:08:19AM +1100, David Leeming wrote:
> I am wondering if this issue has been solved - the pdf resources not
> opening in browse if file names have spaces?

Doesn't look like it.  There have been no new releases of Browse for
Sugar 0.82.  I've tested it again and it still doesn't work.

(On Sugar 0.84 file names with spaces work fine, but the download goes
to the journal and is not displayed by the browser ... more steps are
needed to get to the content.)

> I have just been given a DVD of content with 4GB of PDF files, most
> have spaces in their file names. Nightmare.

for x in *.pdf; do y=$(echo "$x"|tr ' ' '-'); mv -i "$x" "$y"; done

(Unfortunately this does not fix any HTML that might refer to the
files, and only works on one directory at a time.)

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Server-devel mailing list