1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 10:42:28 +01:00
'tag' command works once more
  'source ~/' shows the matches
  fdopen checks whether the file exists, and throws a more-readable error if it doesn't
  'help' work if the current document is a XULDocument (it shows the help in a new tab)
This commit is contained in:
Viktor Kojouharov
2007-04-28 09:52:29 +00:00
parent 4cc50bf40e
commit bfcf598bf2
4 changed files with 9 additions and 3 deletions

View File

@@ -87,10 +87,14 @@ function LocalFile(file, mode, perms, tmp)
{
this.localFile = classes[LOCALFILE_CTRID].createInstance(nsILocalFile);
this.localFile.initWithPath(file);
if (!this.localFile.exists())
throw "No such file or directory";
}
else if (file instanceof nsILocalFile)
{
this.localFile = file;
if (!this.localFile.exists())
throw "No such file or directory";
}
else
{