Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alideweb/sortingdirfiles
Sort Files In A Directory By Date ;)
https://github.com/alideweb/sortingdirfiles
javascript js node nodejs
Last synced: about 2 months ago
JSON representation
Sort Files In A Directory By Date ;)
- Host: GitHub
- URL: https://github.com/alideweb/sortingdirfiles
- Owner: AliDeWeb
- Created: 2024-05-22T07:11:24.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-22T18:39:31.000Z (8 months ago)
- Last Synced: 2024-05-23T08:46:44.604Z (8 months ago)
- Topics: javascript, js, node, nodejs
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📁 Folder File Sorter
Welcome to the Folder File Sorter project! This simple Node.js application takes a folder path and sorts all the files within that folder by their creation date, renaming them in numerical order. 📅🔢
## 🚀 Features
- Sorts files by their creation date.
- Renames files in a numerical sequence.
- Supports various file formats.## 📋 Prerequisites
Make sure you have Node.js installed on your machine. If not, follow the instructions below to install it.
### 🛠️ Installing Node.js
1. Go to the [Node.js website](https://nodejs.org/) and download the installer for your operating system.
2. Run the installer and follow the setup instructions.To check if Node.js is installed correctly, run the following command in your terminal:
```sh
node -v
```
You should see the version number of Node.js if the installation was successful.### 📦 Installation
Clone this repository to your local machine:
```sh
git clone https://github.com/AliDeWeb/SortingDirFiles.git
```
Navigate to the project directory:
```sh
git cd SortingDirFiles
```
Install the required dependencies:
```sh
npm install
```### 📂 Usage
You'll see a text file named folderPath.txt in the root directory of the project. Inside this file, specify the path to the folder you want to sort.
Then Run the application:
```sh
npm start
```
The files in the specified folder will be sorted by their creation date and renamed in numerical order.### 📝 Note
Ensure that the "folderPath.txt" file contains a valid and correct path to the folder you want to sort.
The program will throw an error if the folder is empty or if the path is incorrect.
👨💻 Made with ❤️ by [AliDeWeb](https://www.github.com/alideweb)