mDir = PR_OpenDir(filepath.get()); if (mDir == nsnull) return NS_ERROR_FAILURE;
if (mPersistFile == nsnull || mShellLink == nsnull) return NS_ERROR_FAILURE;
        nsresult Init(nsILocalFile* parent)        {            nsCAutoString filepath;            parent->GetNativeTarget(filepath);            if (filepath.IsEmpty())            {                parent->GetNativePath(filepath);            }            if (filepath.IsEmpty())            {                return NS_ERROR_UNEXPECTED;            }            mDir = PR_OpenDir(filepath.get());            if (mDir == nsnull)    // not a directory?                return NS_ERROR_FAILURE;            mParent = parent;            return NS_OK;        }