const PrivateDirMode … // OpenDir opens a directory for syncing. func OpenDir(path string) (*os.File, error) { … }