mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1223825 - Change Directory.path to include the directory's name. r=baku
This commit is contained in:
parent
740627a24c
commit
6ff4f4864b
@ -230,8 +230,7 @@ Directory::GetPath(nsAString& aRetval) const
|
|||||||
// The Directory ctor removes any trailing '/'; this is the root directory.
|
// The Directory ctor removes any trailing '/'; this is the root directory.
|
||||||
aRetval.AssignLiteral(FILESYSTEM_DOM_PATH_SEPARATOR);
|
aRetval.AssignLiteral(FILESYSTEM_DOM_PATH_SEPARATOR);
|
||||||
} else {
|
} else {
|
||||||
aRetval = Substring(mPath, 0,
|
aRetval = mPath;
|
||||||
mPath.RFindChar(FileSystemUtils::kSeparatorChar) + 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +99,11 @@ partial interface Directory {
|
|||||||
//readonly attribute DOMString name;
|
//readonly attribute DOMString name;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The base name of the directory (a relative path excluding the leaf name).
|
* The path of the Directory (includes both its basename and leafname).
|
||||||
|
* The path begins with the name of the ancestor Directory that was
|
||||||
|
* originally exposed to content (say via a directory picker) and traversed
|
||||||
|
* to obtain this Directory. Full filesystem paths are not exposed to
|
||||||
|
* unprivilaged content.
|
||||||
*/
|
*/
|
||||||
readonly attribute DOMString path;
|
readonly attribute DOMString path;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user