public Directory getDirectory() throws FileStoreException {
		try {
			synchronized (m_incomingDirectory) {
				if (m_incomingDirectory.getFile().exists()) {
					m_incomingDirectory.copyTo(m_currentDirectory, m_incremental);
				}

				m_incremental = true;
			}

			return m_currentDirectory;
		}
		catch (IOException e) {
			UncheckedInterruptedException.ioException(e);
			throw new FileStoreException("Could not create file store directory", e);
		}
	}
FileStore for cache control in nGrinder.
This is the customized version of {@link FileStore} which grinder has.

@since 3.5.0
ngrinder-core/src/main/java/net/grinder/engine/agent/FileStore.java