file-search

Python: How to search only USB flash drives? [closed]

一世执手 提交于 2020-02-25 08:41:26
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have a Python script which is designed to be run from a USB flash drive, and would not work if run from a PC hard drive, so it is safe to assume all copies exist on connected USBs. I have another script

Recursive File Search in VB.NET

三世轮回 提交于 2020-02-25 04:44:52
问题 I have a function that does a recursive directory search for files but when I search a Drive I get Access denied errors which stops the search. How can I avoid these errors? Here's the function I use: lstSearch = GetFilesRecursive(FolderBrowserDialogMain.SelectedPath) Private Function GetFilesRecursive(ByVal path As String) As List(Of String) Dim lstResult As New List(Of String) Dim stkStack As New Stack(Of String) stkStack.Push(path) Do While (stkStack.Count > 0) Dim strDirectory As String =

Recursive File Search in VB.NET

萝らか妹 提交于 2020-02-25 04:42:11
问题 I have a function that does a recursive directory search for files but when I search a Drive I get Access denied errors which stops the search. How can I avoid these errors? Here's the function I use: lstSearch = GetFilesRecursive(FolderBrowserDialogMain.SelectedPath) Private Function GetFilesRecursive(ByVal path As String) As List(Of String) Dim lstResult As New List(Of String) Dim stkStack As New Stack(Of String) stkStack.Push(path) Do While (stkStack.Count > 0) Dim strDirectory As String =

Recursive File Search in VB.NET

。_饼干妹妹 提交于 2020-02-25 04:42:00
问题 I have a function that does a recursive directory search for files but when I search a Drive I get Access denied errors which stops the search. How can I avoid these errors? Here's the function I use: lstSearch = GetFilesRecursive(FolderBrowserDialogMain.SelectedPath) Private Function GetFilesRecursive(ByVal path As String) As List(Of String) Dim lstResult As New List(Of String) Dim stkStack As New Stack(Of String) stkStack.Push(path) Do While (stkStack.Count > 0) Dim strDirectory As String =

Xpath find files for windows? xml parser to find files in windows

烂漫一生 提交于 2020-01-05 08:53:20
问题 So we have 1500 xhtml pages in lets say 100 subfolders of /myfolder. I want to find evil constellations of <goodTag> .... <evilTag/> .... <evilTag/> .... </goodTag> In my current case, it is only allowed to have <goodTag> .... <evilTag/> ... </goodTag> and not 2 evil Tags within a good Tag. This is just an example though. Sometimes I must search for something like <outter> .... <someTag someAttribute="iDoEvil" /> ... </outter> I've been browsing for a while now and could not find a tool which

Perl File::Find::Rule to exclude a single dir

╄→尐↘猪︶ㄣ 提交于 2019-12-24 15:53:26
问题 I have the below shown directory structure. I would like to get just the project names in my @project. @project=('project1','project2') ; I would like to exclude OLD directory and its sub directories in @project I would like to get latest file in the subdirectories for all projects in @project . i.e., for project1 , latest file is in sub directory 2014 , which is foobar__2014_0916_248.txt How can I frame a rule to achieve this? use strict; use File::Find::Rule; use Data::Dump; my $output = "

How to perform a case-insensitive file search in Erlang/Elixir

老子叫甜甜 提交于 2019-12-23 20:11:29
问题 Elixir provides Path.wildcard , which uses the Erlang :filelib.wildcard function internally. Matching is case-sensitive, for example, "a" does not match "A". (http://erlang.org/doc/man/filelib.html#wildcard-1) Please is there a case-insensitive alternative? 回答1: There's no built in option to do this, but since the wildcard syntax supports character alternations similar to regex, you can replace every letter with an alternation of its lower and upper case versions, e.g. f0o -> [fF]0[oO] , and

How to perform a case-insensitive file search in Erlang/Elixir

自闭症网瘾萝莉.ら 提交于 2019-12-23 19:50:30
问题 Elixir provides Path.wildcard , which uses the Erlang :filelib.wildcard function internally. Matching is case-sensitive, for example, "a" does not match "A". (http://erlang.org/doc/man/filelib.html#wildcard-1) Please is there a case-insensitive alternative? 回答1: There's no built in option to do this, but since the wildcard syntax supports character alternations similar to regex, you can replace every letter with an alternation of its lower and upper case versions, e.g. f0o -> [fF]0[oO] , and

How do I write a custom search filter to weed out R.java files? [duplicate]

守給你的承諾、 提交于 2019-12-20 04:48:43
问题 This question already has answers here : Ignore R.java files in Find results (6 answers) Closed 9 months ago . I'm trying to create a custom search à la How to exclude a file extension from IntelliJ IDEA search? in Android Studio. How come the following pattern doesn't exclude R.java files? Note that the second uses &&!file:R.java , yet the scope does not contain fewer files. 回答1: The issue is that one must take into account the path of the file. !file:R.java looks only for R.java in the root

How do I write a custom search filter to weed out R.java files? [duplicate]

穿精又带淫゛_ 提交于 2019-12-20 04:47:21
问题 This question already has answers here : Ignore R.java files in Find results (6 answers) Closed 9 months ago . I'm trying to create a custom search à la How to exclude a file extension from IntelliJ IDEA search? in Android Studio. How come the following pattern doesn't exclude R.java files? Note that the second uses &&!file:R.java , yet the scope does not contain fewer files. 回答1: The issue is that one must take into account the path of the file. !file:R.java looks only for R.java in the root