| Constructor | Description |
|---|---|
PackLock(File packFile,
FS fs) |
Create a new lock for a pack file.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
lock(String msg) |
Create the
pack-*.keep file, with the given message. |
void |
unlock() |
Remove the
.keep file that holds this pack in place. |
public boolean lock(String msg) throws IOException
pack-*.keep file, with the given message.msg - message to store in the file.IOException - the keep file could not be written.public void unlock()
throws IOException
.keep file that holds this pack in place.IOException - if deletion of .keep file failedCopyright © 2018. All rights reserved.