New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REQUEST: Give ability for 'find' command to find folders #128

Open
ner00 opened this Issue Nov 13, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@ner00

ner00 commented Nov 13, 2016

Currently the find command only allows to find files (partially supports folders on NTFS), which serves it's general purpose, but it could be slightly improved by having it also find folders (also on FAT). To prevent returning 2 results in the case that a file and folder of the same name exist, the command should distinguish the request by looking for the presence of a forward-slash at the end of the argument.

For example, let's assume that a file exists in (hd0,1) with name 'this', and there also exists a folder with the same name in (hd0,2).

Searching for the file:
find /this
(hd0,1)

Searching for the folder:
find /this/
(hd0,2)

erol-y added a commit to erol-y/grub4dos that referenced this issue Jul 2, 2017

Added folder searching ability to "find" function. (issue chenall#128)
 New options:
 "--with-folder Folder sensitive searching."
 "--only-folder Searches only folders instead of files"
 Works only on; fat, exfat, ntfs, ext2-3-4 and iso files.
 Added error item ERR_NO_FILE_BUT_FOLDER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment