Filtering files and directoriesIs there a 'better' way to find files from a list in a directory treeShorten...
Approaches to criticizing short fiction
Is there hidden data in this .blend file? Trying to minimize the file size
Am I a Rude Number?
What's the most convenient time of year in the USA to end the world?
Longest Jewish year
Eww, those bytes are gross
How did the original light saber work?
Rear brake cable temporary fix possible?
Do authors have to be politically correct in article-writing?
How to prove teleportation does not violate non-cloning theorem?
Overfitting and Underfitting
Using loops to create tables
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
Does the "particle exchange" operator have any validity?
Why don't I see the difference between two different files in insert mode in vim?
It took me a lot of time to make this, pls like. (YouTube Comments #1)
page split between longtable caption and table
Are there any monsters that consume a player character?
Why do neural networks need so many training examples to perform?
Everyone is beautiful
How experienced do I need to be to go on a photography workshop?
How to acknowledge an embarrassing job interview, now that I work directly with the interviewer?
Strange Sign on Lab Door
How can I deal with a significant flaw I found in my previous supervisor’s paper?
Filtering files and directories
Is there a 'better' way to find files from a list in a directory treeShorten code that gathers files from directoriesFinding world-writable files in local directories onlyService class for Archiving and Mirroring Files and DirectoriesMonitoring directories for files that are generated by an engineering programLoading files or directories based on typeFinding all non-empty directories and their files on an SFTP server with ParamikoQuickSearch for files and directoriesSearching repositories for files with forbidden stringsWalking directory tree like python does
$begingroup$
I want to filter directories and files by what they start with.
var result = DirectoryList(arguments.path, false, "query",
arguments.filter & "*|" & arguments.filter & "*.*");
I am thinking this covers all scenarios because file sometimes don't have extensions and directories sometimes do. I don't think it can be simplier
file-system coldfusion cfml
$endgroup$
add a comment |
$begingroup$
I want to filter directories and files by what they start with.
var result = DirectoryList(arguments.path, false, "query",
arguments.filter & "*|" & arguments.filter & "*.*");
I am thinking this covers all scenarios because file sometimes don't have extensions and directories sometimes do. I don't think it can be simplier
file-system coldfusion cfml
$endgroup$
$begingroup$
Please remember to add the cfml tag to your questions. You seem to forget it almost every time.
$endgroup$
– Jamal♦
10 mins ago
add a comment |
$begingroup$
I want to filter directories and files by what they start with.
var result = DirectoryList(arguments.path, false, "query",
arguments.filter & "*|" & arguments.filter & "*.*");
I am thinking this covers all scenarios because file sometimes don't have extensions and directories sometimes do. I don't think it can be simplier
file-system coldfusion cfml
$endgroup$
I want to filter directories and files by what they start with.
var result = DirectoryList(arguments.path, false, "query",
arguments.filter & "*|" & arguments.filter & "*.*");
I am thinking this covers all scenarios because file sometimes don't have extensions and directories sometimes do. I don't think it can be simplier
file-system coldfusion cfml
file-system coldfusion cfml
edited 11 mins ago
Jamal♦
30.3k11119227
30.3k11119227
asked Jan 24 at 17:34
James A MohlerJames A Mohler
253311
253311
$begingroup$
Please remember to add the cfml tag to your questions. You seem to forget it almost every time.
$endgroup$
– Jamal♦
10 mins ago
add a comment |
$begingroup$
Please remember to add the cfml tag to your questions. You seem to forget it almost every time.
$endgroup$
– Jamal♦
10 mins ago
$begingroup$
Please remember to add the cfml tag to your questions. You seem to forget it almost every time.
$endgroup$
– Jamal♦
10 mins ago
$begingroup$
Please remember to add the cfml tag to your questions. You seem to forget it almost every time.
$endgroup$
– Jamal♦
10 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "196"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f212148%2ffiltering-files-and-directories%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Code Review Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f212148%2ffiltering-files-and-directories%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Please remember to add the cfml tag to your questions. You seem to forget it almost every time.
$endgroup$
– Jamal♦
10 mins ago