Automatically increment File & Directory name and create

Overview

Name Plus

pub package Last Commits Code size License

Automatically increment File & Directory name and create.

Getting Started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  name_plus: ^0.0.1

Next we need to install this

# Dart
pub get

# Flutter
flutter packages get

In your library add the following import:

import 'package:name_plus/name_plus.dart';

Usage

create File with extension

File('path').namePlus('filename');

File('path').namePlusSync('filename');

create Directory with extension

Directory('path').namePlus('filename');

Directory('path').namePlusSync('filename');

Options

When creating a File or Directory, you can pass some options:

File('path').namePlus(
'filename',
format: '(d)', // change increment number format
space: false, // space between name & number format
);

Documentation

Check test.txt file name from example folder path and then name not exist create test.txt or name is already exist create with default format test 1.txt

File('example').namePlus('test.txt');
// test 1.txt

If you use format option, d is number place.

File('example').namePlus('test.txt', format: '(d)');
// test (2).txt

File('example').namePlus('test.txt', format: '{d}');
// test {3}.txt
You might also like...

Petit httpd - This is a simple HTTP file server integrated with Let's Encrypt, gzip and CORS

Petit httpd - This is a simple HTTP file server integrated with Let's Encrypt, gzip and CORS

Nov 24, 2022

Naj - An open-source code generation and file management system written in Dart

Naj An open-source code generation and file management system written in Dart Ov

Feb 14, 2022

cosmic_frontmatter is a package that provides a simple way to parse the frontmatter of a markdown file.

cosmic_frontmatter cosmic_frontmatter is a package that provides a simple way to parse the frontmatter of a markdown file. Getting started To get star

Oct 26, 2022

Experiment for building file system.

experiment_file_system A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you s

Nov 15, 2021

Developed a Group chat application using Flutter and Firebase, where users can register and create groups or join already existing groups and start conversing with each other.

Developed a Group chat application using Flutter and Firebase, where users can register and create groups or join already existing groups and start conversing with each other.

GroupChatApp About Developed a Group chat application using Flutter and Firebase, where users can register and create groups or join already existing

Dec 1, 2022

𝐂𝐨𝐯 π€π‘πžπšπ is a mobile application to track and create better Covid-19 route maps for both shop owners and customers

𝐂𝐨𝐯 π€π‘πžπšπ is a mobile application to track and create better Covid-19 route maps for both shop owners and customers

Cov Ahead Cov Ahead is a mobile application where shopkeepers have an app that shows QR code and users can scan this QR code which will automatically

Jan 15, 2022

Real short video app with firebase and pixels API.Where you can create a short video with pixels' stock videos and also merge your audio.

Real short video app with firebase and pixels API.Where you can create a short video with pixels' stock videos and also merge your audio.

Flutter Short Videos Platform Short videos platform with Flutter and Firebase. About Real short video app with firebase and pixels API.Where you can c

Dec 26, 2022

Self Host Group Chat App (firebase + clean architecture) is full functional group chat where you can create new groups and update profile and communicate in different groups easily. there 2 auth firebase method [Google & Email Password]

Self Host Group Chat App (firebase + clean architecture) is full functional group chat where you can create new groups and update profile and communicate in different groups easily. there 2 auth firebase method [Google & Email Password]

Self Host Group Chat App (firebase + clean architecture) Show some and star the repo to support the project Screenshots Packages we are using: flutter

Jan 8, 2023

I was challenged to create an app with only the Nubank life insurance part and fix some UI issues.

I was challenged to create an app with only the Nubank life insurance part and fix some UI issues.

Seguros I was challenged to create an App with only the Nubank life insurance part and fix some UI issues. Flutter This is a Flutter App, designed bas

Dec 14, 2022
Owner
Thit Lwin
Flutter Developer
Thit Lwin
Munem Sarker 1 Jan 25, 2022
A Dart library for creating a Dart object to represent directory trees.

Directory Tree A Dart library for creating a Dart object to represent directory trees. Getting Started Import and initialize package import 'package:d

Chiziaruhoma Ogbonda 5 Dec 1, 2021
Learn Flutter on Flutter! A widget directory with implementation samples!

Fludget Browse through a variety of widgets used in flutter This application is developed to learn Flutter using Flutter. Different widgets used in fl

ACM VIT 29 Nov 23, 2022
Create mobile file manager design using Flutter

Mobile File Manager Watch it on YouTube Home & Cloud Screen On this file manager design has two pages. The Home page displays file usage information,

Firgia 38 Dec 23, 2022
Alarm clock that automatically debits a certain amount of money if the user does not wake up in time.

pavlov_alarm Alarm clock that automatically debits a certain amount of money if the user does not wake up in time. ⏰ ?? Use of Hive and the Stripe API

null 4 Dec 15, 2022
a software to connect you and your friends and others, are you guys also just tensed over the overuse of social media so we have a solution, appx (name not decided yet)

appx a software to connect you and your friends and others, are you guys also just tensed over the overuse of social media so we have a solution, appx

null 8 Jun 9, 2022
A sophisticated weather app, works with your location or name of any place. Gives detailed summary of weather condition.

clima_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if thi

Michael Okhaimoh 2 Sep 7, 2022
A flutter app that brings the weather according to the entered location name

An application that brings the weather according to the entered location name and displays it dynamically on the screen. It also includes weekly forec

AYDIN EREN KESKΔ°N 0 Oct 31, 2021
A command-line tool which simplifies the task of updating your Flutter app's launcher name

flutter_launcher_name A command-line tool which simplifies the task of updating your Flutter app's launcher name. If you user this package, You don't

null 44 Nov 13, 2022
Generate a new file by compressed video, and provide metadata. Get video thumbnail from a video path, supports JPEG/GIF. To reduce app size not using FFmpeg in IOS.

flutter_video_compress Generate a new path by compressed video, Choose to keep the source video or delete it by a parameter. Get video thumbnail from

ε€©ζ΅·γ‚‹γ‚Š 179 Dec 8, 2022