Giter VIP home page Giter VIP logo

Comments (5)

GAMMACASE avatar GAMMACASE commented on July 23, 2024

Have a few questions:

  1. -c here is already a current behavior of the script, isn't it?
  2. It's by default recursive as of now;
  3. When you say exception list do you mean blacklist file? If so, could you provide your use case where filename is not enough?

from fastdlupdater.

TolikCorp avatar TolikCorp commented on July 23, 2024
  • -c here is already a current behavior of the script, isn't it?
    isn't it
    image
    image
  • It's by default recursive as of now;
    yes, I initially did not notice that there are no necessary file formats in the folder with maps
    its ok
    image

3. When you say exception list do you mean blacklist file? If so, could you provide your use case where filename is not enough?
exception list = blacklist file
this will reduce the error of incorrectly determining the location of the excluded file

from fastdlupdater.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

So, to continue with the discussion:
1 - Can you elaborate on your use case here? I could agree on some filtering of blacklist notifications, but not sure about the general messages at start and end of the output and why you would want to have that stripped;
3 - Also would like to hear your use case here, as I don't really imagine a situation where multiple files with the same name + extension would be present in multiple folders (and that is the format you use in the blacklist), altho that's not something that's hard to implement, just don't want to overcomplicate a system if there are no particular use case for it.

from fastdlupdater.

TolikCorp avatar TolikCorp commented on July 23, 2024

1 - Can you elaborate on your use case here? I could agree on some filtering of blacklist notifications, but not sure about the general messages at start and end of the output and why you would want to have that stripped;

I use commands every 5 minutes and write the results to a log file.
Executable commands:

tf2_1

*/5 * * * * su - root -c 'chown -R -c gs-1:gs-1 /home/gs-1/gameservers/tf2_1' >> /home/gs-1/gameservers/logs/tf2_1_chown_date '+\%Y.\%m.\%d'.log 2>&1
*/5 * * * * su - root -c 'chmod -R -c 775 /home/gs-1/gameservers/tf2_1' >> /home/gs-1/gameservers/logs/tf2_1_chmod_date '+\%Y.\%m.\%d'.log 2>&1
*/5 * * * * su - gs-1 -c 'cd /home/gs-1/gameservers/tf2_1/fastdl && python3 ./fastdl.py' >> /home/gs-1/gameservers/logs/tf2_1_fastdl_date '+\%Y.\%m.\%d'.log 2>&1

When I open the log files, only the result of the work is visible for the chmod & chown command. And in fastdl - spam.

image

3 - Also would like to hear your use case here, as I don't really imagine a situation where multiple files with the same name + extension would be present in multiple folders (and that is the format you use in the blacklist), altho that's not something that's hard to implement, just don't want to overcomplicate a system if there are no particular use case for it.

for the universality of the solution, we can leave it like this, it works the same

from fastdlupdater.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

Alright, added the verbosity level argument (you can see what levels are available via python3 ./fastld.py -h now). For your use case -v0 argument would provide what you asked for. Lmk if there's anything else needs to be addressed.

from fastdlupdater.

Related Issues (2)

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.