• <span id='pw1fv'></span>

    <i id='pw1fv'></i>

    <code id='pw1fv'><strong id='pw1fv'></strong></code>
  • <tr id='pw1fv'><strong id='pw1fv'></strong><small id='pw1fv'></small><button id='pw1fv'></button><li id='pw1fv'><noscript id='pw1fv'><big id='pw1fv'></big><dt id='pw1fv'></dt></noscript></li></tr><ol id='pw1fv'><table id='pw1fv'><blockquote id='pw1fv'><tbody id='pw1fv'></tbody></blockquote></table></ol><u id='pw1fv'></u><kbd id='pw1fv'><kbd id='pw1fv'></kbd></kbd>

          <acronym id='pw1fv'><em id='pw1fv'></em><td id='pw1fv'><div id='pw1fv'></div></td></acronym><address id='pw1fv'><big id='pw1fv'><big id='pw1fv'></big><legend id='pw1fv'></legend></big></address>
        1. <ins id='pw1fv'></ins>
        2. <i id='pw1fv'><div id='pw1fv'><ins id='pw1fv'></ins></div></i>

          <dl id='pw1fv'></dl>
            <fieldset id='pw1fv'></fieldset>

            Linux和Windows文件路径的解决办法

            • 时间:
            • 浏览:2
            • 来源:124软件资讯网

              Linux系统下的文件夹路径和window下的纷歧样  ,windows下就需要写成“\\photos"由于java会把第一个"\"当成转义字符给“吃了”  。但在linux下就是

              “/photos”呵呵  ,是不是很郁闷阿  。以是你的if (myFile.newFolder(path+"\\photos"))

              就应该写成if (myFile.newFolder(path+"/photos"))以此类推  。

              public static final String FILE_SEPARATOR = System.getProperties().getProperty("file.separator");

              文件分开符(在 UNIX 系统中是“/”),window 是"\" 。