Giter Site home page Giter Site logo

Comments (7)

AlexeiA avatar AlexeiA commented on May 18, 2024 1

Yes, using directory instead of mask works, thanks! So this is not an issue for me anymore :)
Btw, when using mask the program returns error at line 55:
inputInfo, err := os.Stat(input)
Out of curiosity, does this line work on unix if input is "*.epub"?

from kepubify.

pgaskin avatar pgaskin commented on May 18, 2024

Type dir and see if there are actually epub files in the current directory. If not, then cd to it. If there are files but it still doesn't work, try using PowerShell instead.

from kepubify.

AlexeiA avatar AlexeiA commented on May 18, 2024

The same error from PowerShell. By the way, if I try non-existing file name, the error is slighly different:
Error: scan input "1.epub": CreateFile 1.epub: The system cannot find the file specified.

from kepubify.

pgaskin avatar pgaskin commented on May 18, 2024

This might be because of the 4-character epub extension on Windows (meaning that wildcards don't work as expected) . As a workaround, you could convert the current dir (.) to ./converted (it will ignore the converted files).

Edit: it is.
Edit 2: Try *.epu*.

from kepubify.

pgaskin avatar pgaskin commented on May 18, 2024

Yes, that works on everything but Windows.

You are correct that the error comes from there, but it's a red herring. The issue is because cmd doesn't expand it correctly (the wildcard processing is done by the shell).

Does *.epu* work?

from kepubify.

AlexeiA avatar AlexeiA commented on May 18, 2024

Does .epu work?

No, cmd and PowerShell always pass wildcards as-is :(

from kepubify.

pgaskin avatar pgaskin commented on May 18, 2024

That's interesting. I wasn't aware of that before (I don't use Windows much right now). I might add wildcard handling directly if it's running on Windows.

from kepubify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.