fix: allow paths to asar archives to contain the .asar extension in directories (#20342)
This commit is contained in:
parent
4ac4b34ae9
commit
bf978e09e4
19 changed files with 204 additions and 183 deletions
|
@ -25,7 +25,8 @@ void ClearArchives();
|
|||
// Separates the path to Archive out.
|
||||
bool GetAsarArchivePath(const base::FilePath& full_path,
|
||||
base::FilePath* asar_path,
|
||||
base::FilePath* relative_path);
|
||||
base::FilePath* relative_path,
|
||||
bool allow_root = false);
|
||||
|
||||
// Same with base::ReadFileToString but supports asar Archive.
|
||||
bool ReadFileToString(const base::FilePath& path, std::string* contents);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue