Giter Site home page Giter Site logo

Comments (2)

curzon01 avatar curzon01 commented on May 29, 2024

how should the program differentiate whether appened .0 belongs to the file name or is a user-selected extension?

You are using the program with the automatic extension switched on (that is the case when parameter --no-extension is not used), so dc first try to separate the extension set by the user and then append the automatic extension (filetype = json) so the process is
a) Config_Office_RGB_Bulb_8.1.0 becomes Config_Office_RGB_Bulb_8.1
b) Config_Office_RGB_Bulb_8.1 becomes Config_Office_RGB_Bulb_8.1.json

There are two ways to avoid all of this:

  • if the restore file name is given as full name, the extension should also be given, i.e.
    decode-config.py -d 10.0.1.164 --restore-file Config_Office_RGB_Bulb_8.1.0.json

  • file names macros @ are also allowed for restore, the program gets the necessary information from your -d device or -f file so yu can simply use the same naming for restore as used by backup:
    decode-config.py -d 10.0.1.164 --restore-file Config_@f_@v

from decode-config.

xbmcnut avatar xbmcnut commented on May 29, 2024

That's awesome. Thank you for the clarification.

from decode-config.

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.