Skip to content

20centaurifux/efind-py-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

efind-py-path

Introduction

This extension for efind provides functions to filter search results by file extension and mime-type.

Available functions

extension_equals(string: extension)

Tests if the extension of the found file equals extension.

$ efind . 'extension_equals(".txt") or extension_equals(".TXT")'

extension_equals(string: extension)

Tests if the extension of the found file equals extension. The string comparison is case in-sensitive.

$ efind . 'extension_equals_icase(".TxT")'

extension_in(string: extensions)

Tests if the comma-separated list extensions contains the file extension of the found file.

$ efind . 'extension_in(".c, .h")'

extension_in_icase(string: extensions)

Tests if the comma-separated list extensions contains the file extension of the found file. The string comparison is case-insensitive.

$ efind . 'extension_in_icase(".cpp, .Hpp")'

mime_equals(string: mime-type)

Tests if the mime-type of the found file is equal to mime-type.

$ efind . 'mime_equals("text/html") or mime_equals("text/plain")'

Installation

Copy the Python script to ~/.efind/extensions or run the install.sh shell script.

About

efind extension to filter files by extension and mime-type.

Resources

License

Stars

Watchers

Forks

Packages

No packages published