Giter Club home page Giter Club logo

spinvalidfilenamefinder's Introduction

SpInvalidFileNameFinder

SpInvalidFileNameFinder is a command-line tool written in Go that helps you find and optionally rename files and folders with invalid names for SharePoint.

Features

  • Find files and folders with invalid names for SharePoint.
  • Log invalid file and folder names to a log file.
  • Optionally rename files and folders with invalid names.
  • Specify the directory to process or use the current working directory by default.
  • Skip files and folders that start with a tilde (~).
  • Skip files and folders that start with a dot (.).

Installation

To install SpInvalidFileNameFinder, make sure you have Go installed on your system, and then run the following command:

go get github.com/yourusername/SpInvalidFileNameFinder

Usage

To use SpInvalidFileNameFinder, navigate to the directory containing the main.go file and run the following command:

go run main.go [flags]

Flags

  • -rename: Enable renaming of files and folders with invalid names (default: false).
  • -dir: Specify the directory to process (defaults to the current working directory).

Examples

  • To find invalid file and folder names without renaming them:

    go run main.go
  • To find invalid file and folder names and rename them:

    go run main.go -rename
  • To find invalid file and folder names in a specific directory:

    go run main.go -dir "/path/to/your/directory"
  • To find invalid file and folder names in a specific directory and rename them:

    go run main.go -dir "/path/to/your/directory" -rename

Log File

SpInvalidFileNameFinder logs the invalid file and folder names to a file called invalid_filenames.log in the directory being processed.

License

SpInvalidFileNameFinder is released under the MIT License.

spinvalidfilenamefinder's People

Contributors

jhoelzel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.