commit | 789b63dca04c810219011ba150cebab66afa25c9 | [log] [tgz] |
---|---|---|
author | Gurpreet Singh <gurpreetgs@google.com> | Wed Dec 06 16:14:07 2023 +0000 |
committer | Gurpreet Singh <gurpreetgs@google.com> | Wed Dec 06 16:55:53 2023 +0000 |
tree | 4b26bc89559d0ed49f8578a2cd5560d1e7ba7391 | |
parent | 6d6755189d9380cc494d9158ad482de422f3beb5 [diff] |
create directory before writing into the file. The with open() method creates the file if it does not exist, but gives a FileNotFound error if the path does not exist. Hence, creating the path directories before using the file. Bug: N/A Test: the build passes. Change-Id: Id5b285ea5581f7ef526876fb6e13a3bf69098acd
This project includes mainline build and other utility code. Any library code intended for use by modules should go in frameworks/libs/modules-utils
instead.
This project uses a single source path for java code. All java code should go in the java
directory with subdirectories corresponding to the java package. Android.bp
files should go alongside the java source files, and should only include java source for a single java package to encourage good code hygiene.
Tests for java code should go in the javatests
directory and follow the same structure.