Coder Social home page Coder Social logo

wolfhong / formic Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 223 KB

Better File Fuzzy Searching Tools. Formic is a Python implementation of Apache Ant FileSet and Globs.

Home Page: https://formic.readthedocs.io/

License: GNU General Public License v3.0

Python 99.70% Makefile 0.30%
apache-ant find fnmatcher glob

formic's People

Contributors

wolfhong avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

formic's Issues

Two slashes appear

Two slashes appear below:

wolfhong@wh-mac$  formic mine/formic/ -i "*.py"
/Users/wolfhong/Documents/mine/formic//setup.py
/Users/wolfhong/Documents/mine/formic//build.py
/Users/wolfhong/Documents/mine/formic/build/lib/formic/command.py
/Users/wolfhong/Documents/mine/formic/build/lib/formic/formic.py

symlinks optiions does not work

symlinks are not followed.

Just test it with by comparing the output of

formic -i '' --no-symlinks formic -i ''

in a folder containing symlinks, the output is the same. The problem is line line 1188 of file formic.py, walk never follows symbolic links, perhaps the problem is solved by setting for root, dirs, files in self.walk(directory, followlinks=self.symlinks)

first tests seem ok

Include empty directories

I'd like the fileset to include empty directories. Currently if the directory is empty, it is not reported in the fileset. I'm using python, using an include of:

"/log/"

And the /log directory is empty, so it is not included in the fileset enumeration. This would be something equivalent to the ant option "includeEmptyDirs" on the Copy command: http://ant.apache.org/manual/Tasks/copy.html

I'm not deeply familiar with Ant but have used FileSet-style patterns in Jenkins, so this could be my misunderstanding.

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.