問題タブ [filesystem-browser]

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.

0 投票する
1 に答える
1545 参照

django - django で利用できるファイルシステム プラグインはありますか?

私が書いているアプリケーションには、ファイルシステム ブラウザのようなものが必要です。私はそれを django を通じて公開したいと考えており、ゼロから作成することを検討する前に、まず既に利用可能なものを探してみることにしました。サーバー上のファイルを表示/操作できる安定した優れたものはありますか?

0 投票する
1 に答える
4501 参照

c# - C# でネットワーク共有と Web フォルダーを列挙するにはどうすればよいですか?

.Net は、フォルダーを参照するための FolderBrowserDialog コントロールを提供します。ただし、これはモーダル ダイアログ ボックスです。フォームにドロップできるユーザー コントロールを作成する必要があります。そのため、すべてのローカル ドライブ、マップされたネットワーク ドライブ、UNC 共有、および Web フォルダー (WebDAV/SharePoint) を取得する必要がある独自の作成を検討してきました。Windows 7 と .Net 4.0 を使用しています。

ローカルおよびマップされたネットワーク ドライブ
DriveInfo.GetDrives() からローカル ドライブを取得できます。ただし、これらは利用可能/オンラインのドライブのみを表示しています。Windows エクスプローラーでは、切断されているか使用できないマップされたネットワーク ドライブも表示されます。

ネットワーク フォルダ/UNC 共有
これまでに確認したところ、.Net には UNC 共有を列挙するメカニズムがないようです。WNetOpenEnumおよびWNetEnumResource関数を使用してネットワークの近隣を列挙するには、Interop to Win32 API を使用する必要があるようです。私はこれを機能させましたが、別の方法がないかどうか疑問に思っていました。

Web (WebDAV) フォルダーと SharePoint
Windows エクスプローラーで、いくつかの WebDAV フォルダーを構成しました。上記WNetOpenENumと同じ Interop 呼び出しを使用するとWNetENumResource、ノード「Web Client Network」と、接続されアクセス可能な WebDAV フォルダーが表示されました。

質問

  1. 構成されているがオフラインになっている、マップされたネットワーク ドライブを取得するにはどうすればよいですか?
  2. UNC 共有を列挙する別の方法はありますか、それとも上記の相互運用呼び出しの使用に固執していますか?
  3. WNetEnumResource「Microsoft Terminal Services」の空のノードが返されました。英語のテキストに基づいてフィルタリングせずに、これをフィルタリングするにはどうすればよいですか?
  4. によって返される Web フォルダは、WNetEnumResource作成時に割り当てたユーザー フレンドリな名前ではなく、IP-Address@Port などの形式になっています\\nnn.nnn.nnn.nnn@18123。Web フォルダのわかりやすい名前を取得するにはどうすればよいですか?
  5. オフラインだった Web フォルダーはまったく表示されませんでしたが、Windows エクスプローラーには表示されています。オフラインのものを入手するための提案はありますか?
0 投票する
1 に答える
1885 参照

javascript - Saving files in a Chrome App

Summary

Normally I could download a bunch of files, but Chrome Apps won't show the download shelf when a download occurs. What would be the best way of getting around this limitation of Chrome Apps?

Ideas

  • I could go about this by creating a zip file, but this would require the user to perform an extra step of unzipping the file.
  • I'm able to silently download the files, and so I could display a prompt to the user when the file is downloaded, but this would require the user to manually search for the file in their downloads folder.

What I've Learned

  • Everywhere on the internet tells me to use Chrome's download API, but this only works for Chrome extensions and not Chrome apps.
  • I can't bring up a save as window because 50 save as windows for 50 files is unacceptable
  • I can, however, bring up a prompt using chrome.fileSystem.chooseEntry({'type': "openDirectory"} to ask the user to choose a directory, but I can't find a way of saving to that directory.
  • My question is basically the same as How can a Chrome extension save many files to a user-specified directory? but for a Chrome app instead of an extension.

Project and Example Code

The app I'm building will be the same as this webpage I've built, but with a few modifications to make it work as a web-app.

This is how my website solves the problem