問題タブ [directory-tree]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Python でのディレクトリ ツリー リスト
Pythonで特定のディレクトリにあるすべてのファイル(およびディレクトリ)のリストを取得するにはどうすればよいですか?
java - Jabacoでディレクトリツリーを取得しますか?
Jabacoは表面的にはVBに似ていますが、その下にはJavaがあることを考えると、ディレクトリツリーを取得する方法を提案できますか?DirSearch()と関係があると思いますが、Javaのバックグラウンドがないので、どうすればいいのかわかりません。
java - このsrcとビルドツリーのタイムスタンプの比較をどのように高速化できますか?
srcツリー内のすべてのJavaファイルが一覧表示されます。次に、それぞれについて、接尾辞「.java」を削除します(出力の前に)が付いてcut -d '.' -f2
いるためです。次に、srcツリーのjavaファイルがビルドツリーの対応するクラスファイルよりも新しいかどうかをテストするために使用します。新しい場合は出力されます。[javacは、またはを使用する代わりに、これを使用して必要なsrcファイルのみをコンパイルできます]find .
.
-nt
ant
make
問題は、それが遅すぎて、約275msかかることです。それを速くする方法は?
または、bashでこれを行うより速い方法はありますか?、、、またはを使用してそれfind
を行う方法がわかりません(これはツリーを自動的にトラバースしないようであり、明示的にリストされたソースファイルが必要です)。diff
rsync
make
linux - Emacs dirtree - ディレクトリ ツリー ビューのセットアップ
ディレクトリツリーを取得しようとしています。別のStackOverFlow Emacs dirtree question に従いました。私の .emacs と .emacs-d は次のとおりです。
.emacs
.emacs.d
私の質問は次のとおりです。
これを正しく設定しましたか? そうでない場合は、どうすればよいですか?
emacsでdirtreeを起動して使用するにはどうすればよいですか?
emacs - Emacsダートリーサイズ変更パーティション
私はダートリーがemacsを使って作業しています。とても良いです。私が抱えている唯一の問題は、左側のディレクトリ構造と右側の編集中のファイルの間のパーティションのサイズを変更できるようにしたいということです。
私はこの問題についてグーグルで調べましたが、何も見つかりませんでした。私はemacsを初めて使用するので、説明はやや素人の言葉で行う必要があるかもしれません。
c# - ディレクトリツリーからランダムファイルを取得する
だから私はどこにもこれの良い例を見つけることができないようです。ディレクトリからランダムなファイルを選択するというこの質問から良い例を見つけましたが、ディレクトリツリー(深さが不明)からランダムなファイルを選択する必要があります。このコードは1つのディレクトリからランダムなファイルを取得しますが、それをすべてのサブディレクトリに拡張する方法についても困惑しています。そこにいるLINQの達人の1人が何かを作成するのに役立つと確信しています。
file - in bash find all files in flat directory that don't exist in another directory tree
I have many files in a directory A
.
Some of those files exist in a directory tree with sub-directories B/B1
, B/B2
, B/B3
, B/B4
, ...
Note that some files have spaces in their names.
For example:
in directory A
:
there's a file named
A/red file.png
there's another named
A/blue file.png
and, in directory tree
B
:there's a file named
B/small/red file.png
In this example, I would like a script to tell me that the file
blue file.png
does not exist in the directoryB
.
How can I write a script that will list all the files in A
that are not found under the directory tree B
?
java - ディレクトリ ツリーにパッケージ プレフィックスがありません -- Eclipse でそれを処理するにはどうすればよいですか?
いくつかの Java プログラム ソースをダウンロードし、それらを Eclipse にインポートしようとしました。
「com.bar.foo.my」という名前のパッケージがあり、ディレクトリが次のように設定されているとします。
そのため、ソースには個別のディレクトリがありますが、レベル「com」がありません。
質問:この「ショートカット」を認識できるように Eclipse を設定するにはどうすればよいですか?
アップデート:
トップレベルでは、プログラムは次のようなディレクトリで構成されています。
に入れられた* .javaファイルの束だけではないことを示すためにそれらを示していますsrc
。
git - git管理対象プロジェクトのファイル内のコンテンツをディレクトリツリーで検索するにはどうすればよいですか?
私はunixfind
コマンドが好きですが、プロジェクトを検索して、任意のディレクトリまたはサブディレクトリ内の任意のファイルでテキストを検索する場合は、常に「面倒」に使用できません。
これを行う簡単な方法はありますか?
.htaccess - Pointing to subfolder via .htaccess doesn't work
I'm working on a WP based site. I have the site of the client on my space (www.mydomainname.com/~subfolder/sub-subfolder). Now the original domain of the client is pointing to my space (www.clientdomain.com goes directly on the www.domainname.com/~subfolder/) without changing url name. But, whent it happens, the server answer giving a directory tree. I would need the site to point directly to sub-subfolder (not to ~subfolder) without giving the directory tree.
I have used this .htaccess:
How can I do it? I'm sure I'm doing the same error but I can't find it... Please help me I'm going crazy!!! :)
Thank you!