Skip to content

Commit 793085d

Browse files
Add fileMode docs.
1 parent a5c1c4d commit 793085d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

objectbox-java/src/main/java/io/objectbox/BoxStoreBuilder.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,12 @@ private static File getAndroidFilesDir(Object context) {
274274
return filesDir;
275275
}
276276

277-
// TODO Docs, validation.
277+
/**
278+
* Specify
279+
* <a href="https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation">unix-style file permissions</a>
280+
* to use for the database directory and files.
281+
* E.g. for {@code rw-rw-rw-} (owner, group, other) pass the octal code {@code 666}.
282+
*/
278283
public BoxStoreBuilder fileMode(long mode) {
279284
this.fileMode = mode;
280285
return this;

0 commit comments

Comments
 (0)