Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: copy an epub as a file, not a directory

by Anonymous Monk
on Sep 13, 2019 at 00:56 UTC ( [id://11106105]=note: print w/replies, xml ) Need Help??


in reply to Re^3: copy an epub as a file, not a directory
in thread copy an epub as a file, not a directory

I'm not sure about the OSX updates. This machine can't get beyond High Sierra 10.13.6, and I haven't seen any security updates for a while.

Looking at the file via Finder -> Show Package Contents shows me a typical epub layout with files and directories.

When I check the file with -d, it comes back positive as a directory, but of course searching within it does not show me a single file.

I'm beginning to wonder if the original epub file has something compromised.

  • Comment on Re^4: copy an epub as a file, not a directory

Replies are listed 'Best First'.
Re^5: copy an epub as a file, not a directory
by Anonymous Monk on Sep 13, 2019 at 02:17 UTC
    Looking at the file via Finder -> Show Package Contents shows me a typical epub layout with files and directories. When I check the file with -d, it comes back positive as a directory, but of course searching within it does not show me a single file. I'm beginning to wonder if the original epub file has something compromised.

    If you can "Show Package Contents" on an "epub" then you are dealing with an application, not an epub file. I would inspect that package very carefully before running it. Maybe it's a self-reading epub app or maybe it's posing as epub for less benign reasons.

      Yes, that does seem very odd. Yet it appears as a genuine epub file. I have since acquired a different copy of that epub, and Finder no longer has 'Show View Options'. However, when it does get copied to my web directory, I still cannot click on it to download it!

      Safari errors out:

      The requested URL /fiction/data/Baldacci,David/Saving Faith.epub/ was +not found on this server.

      I need to find out where the trailing front-slash is coming from.

        SOLVED

        After checking the actual DB, discovered the file name was missing from a field. So the script would show me a list of books, but there was no file name tied to the link. DUH

        All works now.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11106105]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-16 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found