• 请不要在回答技术问题时复制粘贴 AI 生成的内容
firhome
V2EX  ›  程序员

有没有办法让浏览器打开文件夹?

  •  
  •   firhome · Jul 14, 2014 · 3409 views
    This topic created in 4364 days ago, the information mentioned may be changed or developed.
    file://home 只能在浏览器里浏览文件夹。

    我想在mac里 地址栏上输入 可以打开 finder

    windows里就直接打开该文件夹。。

    可以实现吗?
    2 replies    2014-07-14 22:47:11 +08:00
    jwk345
        1
    jwk345  
       Jul 14, 2014   ❤️ 1
    见这里的讨论,自己测试了下 Windows 下的 Firefox 是可以的
    1、在 about:config 新建一个 Boolean: network.protocol-handler.expose.file,值设置为 false
    2、输入一个 file:// 开头的路径,就会提示你用什么程序打开,找到 Finder.app 应该就行了
    pyshift
        2
    pyshift  
       Jul 14, 2014
    file:///D:/
    file:///home/test
    是这样吗=。=
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5658 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 03:17 · PVG 11:17 · LAX 20:17 · JFK 23:17
    ♥ Do have faith in what you're doing.