File - BaseName

Undraw File Manager Re Ms29

File - BaseName


A file / directory is located by its path.

The base name is the last part of the path (ie the file name and its extension if any)

With the copy and move file operation, the basename does not change by default (ie if not specified).


The basename for the the below path:




Discover More
Card Puncher Data Processing
How to perform File System operations (copy, exists, move, ) in Ansible?

This page shows you how to perform File system operations in Ansible. When looping through files, you can get the...

Share this page:
Follow us:
Task Runner