randomfile

module
v0.0.0-...-afdafad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: GPL-2.0

README

randomfile

Gets a random file name in a directory

Usage

$ randomfile <directory>
Returns

0 on success and prints the random file name to stdout 1 on failure and prints an error message to stderr

Faiilures are:

  • Directory does not exist
  • Directory is empty
  • Directory is not a directory

Installation

    go install github.com/arngrimur/randomfile 

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL