зеркало из https://github.com/mozilla/pjs.git
Родитель
796735bcbd
Коммит
dcb447212a
|
@ -1,4 +1,4 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
|
@ -28,6 +28,7 @@
|
|||
// may think they are. Welcome to reality.
|
||||
|
||||
#include "nsISupports.idl"
|
||||
interface nsISimpleEnumerator;
|
||||
|
||||
[scriptable, uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)]
|
||||
interface nsIFile : nsISupports
|
||||
|
@ -249,6 +250,16 @@ interface nsIFile : nsISupports
|
|||
* If |recur| is true, it will descend subdirectories looking for
|
||||
*/
|
||||
boolean isContainedIn(in nsIFile inFile, in boolean recur);
|
||||
|
||||
|
||||
/**
|
||||
* Returns an enumeration of the elements in a directory. Each
|
||||
* element in the enumeration is an nsIFile.
|
||||
*
|
||||
* @return NS_ERROR_FILE_NOT_DIRECTORY if the current nsIFile does
|
||||
* not specify a directory.
|
||||
*/
|
||||
readonly attribute nsISimpleEnumerator children;
|
||||
};
|
||||
|
||||
%{C++
|
||||
|
@ -266,4 +277,9 @@ interface nsIFile : nsISupports
|
|||
#define NS_ERROR_FILE_INVALID_PATH NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 9)
|
||||
#define NS_ERROR_FILE_DISK_FULL NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 10)
|
||||
#define NS_ERROR_FILE_CORRUPTED NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 11)
|
||||
|
||||
//PR_NOT_DIRECTORY_ERROR
|
||||
#define NS_ERROR_FILE_NOT_DIRECTORY NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_FILES, 12)
|
||||
|
||||
|
||||
%}
|
||||
|
|
Загрузка…
Ссылка в новой задаче