All Go Rust Python PHP JavaScript
Chrome Dev Summit to secure your spot in workshops, office hours and learning lounges!

How to Delete the Contents of a Folder in Python

In Python, there are 2 ways to delete the contents of a folder. Using rmtree Method The shutil.rmtree() method deletes an entire directory tree; path must point to a directory. For example, #!/usr/bin/python3 # Import module import os, shutil ...
Tomoki

How to Check If a Directory Exists in Python

In Python, there are 3 ways to check if a directory exists. Using os.path.isdir Method You can use os.path.isdir() to check if a directory exists, it really simple. For example, #!/usr/bin/python3 # Import module import os d = "./folder" print...
aweis

How To Install Go in Linux

In Golang, there are 2 ways to install Go in Linux.Download Packages Download packages for Windows 64-bit, macOS, Linux, and more. Go install Linux Remove any previous Go installation by deleting the /usr/local/go folder (if it exists), then extr...
Unused

How to use the mkdir command in Linux

Create the DIRECTORY(ies), if they do not already exist. mkdir command in Linux allows the user to create directories (also referred to as folders in some operating systems ). This command can create multiple directories at once as well as set the p...

How to use the gzip command in Linux

Compress or uncompress FILEs. Gzip reduces the size of the named files using Lempel-Ziv coding (LZ77). Whenever possible, each file is replaced by one with the extension .gz, while keeping the same ownership modes, access and modi‐ficati...

How to use the chmod command in Linux

chmod is the command and system call used to change the access permissions of file system objects (files and directories) sometimes known as modes. The chmod command sets the file permissions flags on a file or folder. The flags define who can read,...

How to use the Angular CLI new command line

Create an Angular workspace.Creates and initializes a new Angular application that is the default project for a new workspace. Provides interactive prompts for optional configuration, such as adding routing support. All prompts can safely be allowed...

How to use the Angular CLI generate command line

Generates and/or modifies files based on a schematic.Creates a new, generic NgModule definition in the given or default project. NgModule ng generate module page/edit ng g m page/edit CREATE src/app/page/edit/edit.module.ts (19...

How to use the Angular CLI build command line

Compiles an Angular app into an output directory named dist/ at the given output path.The command can be used to build a project of type "application" or "library". When used to build a library, a different builder is invoked, and only the ts-config,...

How to use the Angular CLI command line

Development tools and libraries specialized for Angular.How to use the Angular CLI command line The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command...

How to install Pixi.js

Pixi js can create stunning digital content. This open-source, cross-platform 2D engine helps create games and interactive, animation-based websites.--pname-- is an extremely fast 2D sprite rendering engine. What does that mean? It means that it help...