亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? file-utils.js

?? 現(xiàn)在很火的郵件客戶端軟件thunderbird的源碼
?? JS
字號:
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is The JavaScript Debugger. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1998 * the Initial Developer. All Rights Reserved. * * Contributor(s): *   Robert Ginda, <rginda@netscape.com>, original author * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), * in which case the provisions of the GPL or the LGPL are applicable instead * of those above. If you wish to allow use of your version of this file only * under the terms of either the GPL or the LGPL, and not to allow others to * use your version of this file under the terms of the MPL, indicate your * decision by deleting the provisions above and replace them with the notice * and other provisions required by the GPL or the LGPL. If you do not delete * the provisions above, a recipient may use your version of this file under * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** *//* notice that these valuse are octal. */const PERM_IRWXU = 00700;  /* read, write, execute/search by owner */const PERM_IRUSR = 00400;  /* read permission, owner */const PERM_IWUSR = 00200;  /* write permission, owner */const PERM_IXUSR = 00100;  /* execute/search permission, owner */const PERM_IRWXG = 00070;  /* read, write, execute/search by group */const PERM_IRGRP = 00040;  /* read permission, group */const PERM_IWGRP = 00020;  /* write permission, group */const PERM_IXGRP = 00010;  /* execute/search permission, group */const PERM_IRWXO = 00007;  /* read, write, execute/search by others */const PERM_IROTH = 00004;  /* read permission, others */const PERM_IWOTH = 00002;  /* write permission, others */const PERM_IXOTH = 00001;  /* execute/search permission, others */const MODE_RDONLY   = 0x01;const MODE_WRONLY   = 0x02;const MODE_RDWR     = 0x04;const MODE_CREATE   = 0x08;const MODE_APPEND   = 0x10;const MODE_TRUNCATE = 0x20;const MODE_SYNC     = 0x40;const MODE_EXCL     = 0x80;const PICK_OK      = Components.interfaces.nsIFilePicker.returnOK;const PICK_CANCEL  = Components.interfaces.nsIFilePicker.returnCancel;const PICK_REPLACE = Components.interfaces.nsIFilePicker.returnReplace;const FILTER_ALL    = Components.interfaces.nsIFilePicker.filterAll;const FILTER_HTML   = Components.interfaces.nsIFilePicker.filterHTML;const FILTER_TEXT   = Components.interfaces.nsIFilePicker.filterText;const FILTER_IMAGES = Components.interfaces.nsIFilePicker.filterImages;const FILTER_XML    = Components.interfaces.nsIFilePicker.filterXML;const FILTER_XUL    = Components.interfaces.nsIFilePicker.filterXUL;// evald f = fopen("/home/rginda/foo.txt", MODE_WRONLY | MODE_CREATE)// evald f = fopen("/home/rginda/vnk.txt", MODE_RDONLY)var futils = new Object();futils.umask = PERM_IWOTH | PERM_IWGRP;futils.MSG_SAVE_AS = "Save As";futils.MSG_OPEN = "Open";futils.getPicker =function futils_nosepicker(initialPath, typeList, attribs){    const classes = Components.classes;    const interfaces = Components.interfaces;    const PICKER_CTRID = "@mozilla.org/filepicker;1";    const LOCALFILE_CTRID = "@mozilla.org/file/local;1";    const nsIFilePicker = interfaces.nsIFilePicker;    const nsILocalFile = interfaces.nsILocalFile;    var picker = classes[PICKER_CTRID].createInstance(nsIFilePicker);    if (typeof attribs == "object")    {        for (var a in attribs)            picker[a] = attribs[a];    }    else        throw "bad type for param |attribs|";        if (initialPath)    {        var localFile;                if (typeof initialPath == "string")        {            localFile =                classes[LOCALFILE_CTRID].createInstance(nsILocalFile);            localFile.initWithPath(initialPath);        }        else        {            if (!(initialPath instanceof nsILocalFile))                throw "bad type for argument |initialPath|";            localFile = initialPath;        }                picker.displayDirectory = localFile    }    if (typeof typeList == "string")        typeList = typeList.split(" ");    if (typeList instanceof Array)    {        for (var i in typeList)        {            switch (typeList[i])            {                case "$all":                    picker.appendFilters(FILTER_ALL);                    break;                                    case "$html":                    picker.appendFilters(FILTER_HTML);                    break;                                    case "$text":                    picker.appendFilters(FILTER_TEXT);                    break;                                    case "$images":                    picker.appendFilters(FILTER_IMAGES);                    break;                                    case "$xml":                    picker.appendFilters(FILTER_XML);                    break;                                    case "$xul":                    picker.appendFilters(FILTER_XUL);                    break;                case "$opml":                    var newsBlogBundle = document.getElementById("bundle_newsblog");                    picker.appendFilter(                      newsBlogBundle.getString("subscribe-OPMLExportOPMLFilesFilterText"), "*.opml");                    break;                default:                    picker.appendFilter(typeList[i], typeList[i]);                    break;            }        }    }     return picker;}function pickSaveAs (title, typeList, defaultFile, defaultDir){    if (!defaultDir && "lastSaveAsDir" in futils)        defaultDir = futils.lastSaveAsDir;        var picker = futils.getPicker (defaultDir, typeList,                                    {defaultString: defaultFile});    picker.init (window, title ? title : futils.MSG_SAVE_AS,                 Components.interfaces.nsIFilePicker.modeSave);    var rv = picker.show();        if (rv != PICK_CANCEL)        futils.lastSaveAsDir = picker.file.parent;    return {reason: rv, file: picker.file, picker: picker};}function pickOpen (title, typeList, defaultFile, defaultDir){    if (!defaultDir && "lastOpenDir" in futils)        defaultDir = futils.lastOpenDir;        var picker = futils.getPicker (defaultDir, typeList,                                    {defaultString: defaultFile});    picker.init (window, title ? title : futils.MSG_OPEN,                 Components.interfaces.nsIFilePicker.modeOpen);    var rv = picker.show();        if (rv != PICK_CANCEL)        futils.lastOpenDir = picker.file.parent;    return {reason: rv, file: picker.file, picker: picker};}function fopen (path, mode, perms, tmp){    return new LocalFile(path, mode, perms, tmp);}function LocalFile(file, mode, perms, tmp){    const classes = Components.classes;    const interfaces = Components.interfaces;    const LOCALFILE_CTRID = "@mozilla.org/file/local;1";    const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1";    const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1";    const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1";        const nsIFile = interfaces.nsIFile;    const nsILocalFile = interfaces.nsILocalFile;    const nsIFileOutputStream = interfaces.nsIFileOutputStream;    const nsIFileInputStream = interfaces.nsIFileInputStream;    const nsIScriptableInputStream = interfaces.nsIScriptableInputStream;    if (typeof perms == "undefined")        perms = 0666 & ~futils.umask;        if (typeof file == "string")    {        this.localFile = classes[LOCALFILE_CTRID].createInstance(nsILocalFile);        this.localFile.initWithPath(file);    }    else if (file instanceof nsILocalFile)    {        this.localFile = file;    }    else if (file instanceof Array && file.length > 0)    {        this.localFile = classes[LOCALFILE_CTRID].createInstance(nsILocalFile);        this.localFile.initWithPath(file.shift());        while (file.length > 0)            this.localFile.appendRelativePath(file.shift());    }    else    {        throw "bad type for argument |file|.";    }        if (mode & (MODE_WRONLY | MODE_RDWR))    {        this.outputStream =             classes[FILEOUT_CTRID].createInstance(nsIFileOutputStream);        this.outputStream.init(this.localFile, mode, perms, 0);    }        if (mode & (MODE_RDONLY | MODE_RDWR))    {        var is = classes[FILEIN_CTRID].createInstance(nsIFileInputStream);        is.init(this.localFile, mode, perms, tmp);        this.inputStream =            classes[SCRIPTSTREAM_CTRID].createInstance(nsIScriptableInputStream);        this.inputStream.init(is);    }    }LocalFile.prototype.write =function fo_write(buf){    if (!("outputStream" in this))        throw "file not open for writing.";    return this.outputStream.write(buf, buf.length);}LocalFile.prototype.read =function fo_read(max){    if (!("inputStream" in this))        throw "file not open for reading.";    var av = this.inputStream.available();    if (typeof max == "undefined")        max = av;    if (!av)        return null;            var rv = this.inputStream.read(max);    return rv;}LocalFile.prototype.close =function fo_close(){    if ("outputStream" in this)        this.outputStream.close();    if ("inputStream" in this)        this.inputStream.close();}LocalFile.prototype.flush =function fo_close(){    return this.outputStream.flush();}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人在线视频一区二区| 精品久久国产97色综合| 欧美一区二区三区成人| 中文乱码免费一区二区| 首页亚洲欧美制服丝腿| 色婷婷久久99综合精品jk白丝 | 欧美午夜片在线看| 国产亲近乱来精品视频| 青青草国产成人99久久| 在线欧美小视频| 国产嫩草影院久久久久| 久久爱另类一区二区小说| 欧美日韩久久久久久| 国产精品久久久久国产精品日日| 欧美bbbbb| 欧美人与z0zoxxxx视频| 伊人婷婷欧美激情| www.av亚洲| 国产无人区一区二区三区| 激情综合网av| 欧美电影免费观看高清完整版| 亚洲www啪成人一区二区麻豆| 高清不卡在线观看| 亚洲欧洲一区二区三区| 丁香六月综合激情| 日本一二三四高清不卡| 成人黄色综合网站| 国产精品人人做人人爽人人添 | 色88888久久久久久影院按摩 | 亚洲精品在线三区| 久久www免费人成看片高清| 欧美一区二区三区系列电影| 日本成人在线网站| 欧美成人免费网站| 国产毛片精品一区| 国产精品私人自拍| 97精品久久久午夜一区二区三区| 国产精品久久久久久户外露出| 国产成人a级片| 国产日韩亚洲欧美综合| 不卡电影一区二区三区| 日韩一区在线看| 成人18精品视频| 亚洲激情在线播放| 欧美日韩1区2区| 九九国产精品视频| 国产精品国产三级国产有无不卡| 91视频国产资源| 亚洲国产日韩a在线播放性色| 欧美三级视频在线| 美女一区二区三区| 国产欧美精品在线观看| 91搞黄在线观看| 偷拍一区二区三区| 精品va天堂亚洲国产| 91小视频在线| 午夜精品123| 国产午夜亚洲精品午夜鲁丝片| 99re热视频这里只精品| 亚洲成av人片在www色猫咪| 精品久久久久久无| 日本丰满少妇一区二区三区| 男男视频亚洲欧美| 国产精品久久久久永久免费观看| 欧美中文字幕久久| 久久99精品国产.久久久久久 | 一区二区国产视频| 欧美一区二区三区男人的天堂| 国产成人在线网站| 亚洲成人av一区二区| 国产欧美精品国产国产专区| 欧美性猛交xxxx乱大交退制版 | 色欧美片视频在线观看在线视频| 五月婷婷综合激情| 日韩中文字幕区一区有砖一区| 国产视频911| 欧美精品精品一区| 91影视在线播放| 国产精品自在欧美一区| 性做久久久久久免费观看欧美| 国产精品午夜在线| 精品国产免费一区二区三区香蕉 | 成人a级免费电影| 毛片不卡一区二区| 亚洲成人免费看| 亚洲色图.com| 国产精品入口麻豆原神| 日韩亚洲国产中文字幕欧美| 91蜜桃免费观看视频| 国产乱国产乱300精品| 日韩黄色免费网站| 亚洲综合精品自拍| 中文字幕亚洲视频| 久久久久久免费毛片精品| 在线播放/欧美激情| 色狠狠综合天天综合综合| 成人h精品动漫一区二区三区| 精品影视av免费| 日本午夜精品视频在线观看| 午夜精品久久久久久久久久久| 最新不卡av在线| 国产精品午夜电影| 国产精品久久久久影院老司| 精品国产乱码久久| 欧美成人r级一区二区三区| 4438亚洲最大| 欧美性受xxxx黑人xyx性爽| 91免费看`日韩一区二区| jvid福利写真一区二区三区| 成人高清视频在线观看| 成人永久aaa| 成人夜色视频网站在线观看| 国产999精品久久| 国产精品亚洲专一区二区三区| 激情综合网最新| 国产精品一区久久久久| 国产精品69毛片高清亚洲| 国产成人免费在线观看不卡| 成人在线综合网| 99免费精品视频| 欧美在线观看视频在线| 欧美日韩国产另类不卡| 欧美精品久久一区| 精品国产免费一区二区三区香蕉| 精品久久五月天| 欧美激情一区二区三区蜜桃视频| 国产精品视频免费看| 一区二区在线观看视频在线观看| 亚洲一级不卡视频| 日韩电影在线观看一区| 极品少妇一区二区三区精品视频 | 国产精品毛片a∨一区二区三区| 国产精品国产精品国产专区不片| 亚洲天堂福利av| 亚洲va在线va天堂| 国内精品第一页| 欧美精品第一页| 久久色视频免费观看| 国产精品对白交换视频| 亚洲午夜一区二区| 久久99国产精品尤物| 91在线视频观看| 91精品国产综合久久久久久久久久 | 99re亚洲国产精品| 欧美精品久久99久久在免费线 | 亚洲精品中文字幕在线观看| 日韩免费高清av| 国产午夜久久久久| 蜜臀精品久久久久久蜜臀| 国产在线视频不卡二| 亚洲国产va精品久久久不卡综合| 成人夜色视频网站在线观看| 久久伊人蜜桃av一区二区| 五月天丁香久久| 91久久久免费一区二区| 一区在线播放视频| 成人avav影音| 中文字幕va一区二区三区| 国产曰批免费观看久久久| 日韩欧美精品在线视频| 日本午夜精品一区二区三区电影| 欧美三级在线看| 午夜久久电影网| 欧美日韩精品欧美日韩精品一综合| 一区二区三区在线观看视频| 99久久久精品| 亚洲精选视频在线| 在线视频一区二区三区| 一区二区三区 在线观看视频| 色婷婷国产精品久久包臀| 亚洲美女偷拍久久| 欧美午夜一区二区| 日本不卡1234视频| 精品福利在线导航| 韩国三级电影一区二区| 国产日产亚洲精品系列| 成人免费精品视频| 亚洲精品菠萝久久久久久久| 欧美影片第一页| 午夜精品一区二区三区三上悠亚 | 日韩精品电影在线| 日韩免费观看高清完整版 | 美女视频免费一区| 26uuu精品一区二区在线观看| 国产一区二区三区在线观看免费视频| 久久久天堂av| www.亚洲在线| 亚洲电影激情视频网站| 日韩一区二区在线播放| 精品一区二区免费看| 中文字幕+乱码+中文字幕一区| 99国产欧美另类久久久精品| 亚洲成av人片www| 久久欧美一区二区| 色哟哟国产精品| 美女视频免费一区| 亚洲国产高清aⅴ视频| 欧美体内she精高潮| 美女视频一区在线观看| 中文字幕亚洲区|