Skip to content

Copies an inputted valid directory (and all of its contents) into a specified output directory, and replaces all occurrences in directory name, file name, and file contents of a target string with a replacement string.

Notifications You must be signed in to change notification settings

atile4/file-folder-string-replacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

file-folder-string-replacer

Copies an inputted valid directory (and all of its contents) into a specified directory, and replaces all occurrences in directory name, file name, and file contents of a target string with a replacement string.

Directory inputs should contain the full path.

Requirements

Python 3.4 Interpreter or above for shutil and pathlib modules

Installation

  1. Download main.py in the replacer folder
  2. Run the file in a command line

Example Usage

INPUT A DIRECTORY PATH: "C:\Users\attic\Desktop\foundations"
INPUT AN OUTPUT PATH: "C:\Users\attic\Desktop\output"
INPUT TARGET STRING: tpmt
INPUT REPLACEMENT STRING: REPLACED
INPUT FILE TYPE: sql

Known Issues

  • Inflexible directory path inputs

  • The program will only modify one type of a specified text file.

  • Inputting a specified text file to modify is required rather than optional.

About

Copies an inputted valid directory (and all of its contents) into a specified output directory, and replaces all occurrences in directory name, file name, and file contents of a target string with a replacement string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages