Compare commits
2 Commits
d4509af986
...
c30ba263f5
| Author | SHA1 | Date | |
|---|---|---|---|
| c30ba263f5 | |||
| fd19f770b1 |
@@ -6,8 +6,8 @@ import mysql.connector
|
|||||||
# Author: Sébastien Plante
|
# Author: Sébastien Plante
|
||||||
# Date: 2025-10-07
|
# Date: 2025-10-07
|
||||||
# Description:
|
# Description:
|
||||||
# This script scans a specified directory for {table} and synchronizes their names and last modified dates
|
# This script scans a specified directory for folders and synchronizes their names and last modified dates
|
||||||
# with a MySQL database. It marks {table} as inactive if they are no longer present in the directory.
|
# with a MySQL database. It marks folders as inactive if they are no longer present in the directory.
|
||||||
|
|
||||||
# Version 1.1
|
# Version 1.1
|
||||||
# Changes:
|
# Changes:
|
||||||
@@ -18,9 +18,9 @@ import mysql.connector
|
|||||||
# pip install mysql-connector-python
|
# pip install mysql-connector-python
|
||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
# python {table}ToSQL.py
|
# python FoldersToSQL.py
|
||||||
# Optionally, you can specify a different path to scan:
|
# Optionally, you can specify a different path to scan:
|
||||||
# python {table}ToSQL.py "C:\another folder"
|
# python FoldersToSQL.py "C:\another folder"
|
||||||
|
|
||||||
# ================== CONFIGURATION ==================
|
# ================== CONFIGURATION ==================
|
||||||
SCAN_PATH = r"C:\test folder"
|
SCAN_PATH = r"C:\test folder"
|
||||||
|
|||||||
Reference in New Issue
Block a user