Giter VIP home page Giter VIP logo

Comments (6)

boldtrn avatar boldtrn commented on June 16, 2024 1

This could be doable with this command:

if [[ $(find "$filename" -mtime +100 -print) ]]; then
  echo "File $filename exists and is older than 100 days"
fi

Before that we would probably have to check if the file exists, which could be doable like this:

if [ ! -f /tmp/foo.txt ]; then
    echo "File not found!"
fi

from mapsforge-creator.

devemux86 avatar devemux86 commented on June 16, 2024 1

I added parameter to make days configurable.

from mapsforge-creator.

boldtrn avatar boldtrn commented on June 16, 2024 1

BTW: I tested this feature and it works well, thanks :).

from mapsforge-creator.

devemux86 avatar devemux86 commented on June 16, 2024

Bash can probably provide such functionality.

from mapsforge-creator.

devemux86 avatar devemux86 commented on June 16, 2024

Thanks for the hints!
I pushed an implementation to exit early (need special code?) if file exists and is newer than 30 days (as in old creator).
@boldtrn can you check if all work ok?

from mapsforge-creator.

boldtrn avatar boldtrn commented on June 16, 2024

Awesome, this looks good. Will give it a try over the next couple of days.

from mapsforge-creator.

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.