---
name: "Prophet::FilesystemReplica"
section: "3pm"
platform: "linux"
package: "libprophet-perl"
version: "0.743-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Prophet::FilesystemReplica"
---

# Prophet::FilesystemReplica(3pm)

### replica\_exists

Returns true if the replica already exists / has been initialized. Returns false otherwise.

### \_file\_exists PATH

Returns true if PATH is a file or directory in this replica's directory structure

### traverse\_changesets { after =\> SEQUENCE\_NO, callback =\> sub { } }

Walks through all changesets from `$after` to `$until`, calling `$callback` on each.

If no `$until` is specified, the latest changeset is assumed.

### read\_userdata\_file

Returns the contents of the given file in this replica's userdata directory. Returns `"undef"` if the file does not exist.

### write\_userdata

Writes the given string to the given file in this replica's userdata directory.
