renlfn

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Unlicense Imports: 7 Imported by: 0

Documentation

Overview

renlfnはディレクトリを再帰的に探索して、ディレクトリとファイルの名前を切り詰めるためのルーチンを実装します。

短縮されたファイル名は、ファイルパス全体のCRC32値、拡張子のない基底名(basename)、ドットを含む拡張子からなります。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasenameLength added in v0.0.4

func BasenameLength(path string) uint

BasenameLength は基底名の長さを計算します。

func ChecksumAscii

func ChecksumAscii(s string) string

func RealMain

func RealMain(config Config)

func RenameRec

func RenameRec(config Config, dir string, depth uint)

func TruncatePath

func TruncatePath(path string, newbasenamelen uint) string

パスをとり、短縮されたファイル名を持つパスを作成します。

func TruncateString

func TruncateString(s string, len uint) string

Types

type Config

type Config struct {
	Dir         string
	Actual      bool
	Depth       uint
	Length      uint
	LeaveDirs   bool
	LeaveLength uint
}

Directories

Path Synopsis
bin

Jump to

Keyboard shortcuts

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