Deprecate Z.File.getBinaryContents
This commit is contained in:
parent
37412c68ff
commit
a8dce25cef
1 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,8 @@ Zotero.File = new function(){
|
||||||
* Get contents of a binary file
|
* Get contents of a binary file
|
||||||
*/
|
*/
|
||||||
this.getBinaryContents = function(file) {
|
this.getBinaryContents = function(file) {
|
||||||
|
Zotero.debug("Zotero.File.getBinaryContents() is deprecated -- "
|
||||||
|
+ "use Zotero.File.getBinaryContentsAsync() when possible", 2);
|
||||||
var iStream = Components.classes["@mozilla.org/network/file-input-stream;1"]
|
var iStream = Components.classes["@mozilla.org/network/file-input-stream;1"]
|
||||||
.createInstance(Components.interfaces.nsIFileInputStream);
|
.createInstance(Components.interfaces.nsIFileInputStream);
|
||||||
iStream.init(file, 0x01, 0o664, 0);
|
iStream.init(file, 0x01, 0o664, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue