Perforce cannot upload empty folders, and unlike SVN, you do not need to upload folders separately
Upload the folder below the file, the folder is automatically uploaded.
Command :P4 [g-opts] add [-C changelist#] [-f-n] File ...
G-opts Global Options
-c Specifies to add files related to Changelist;
-f Specifies to increase the use of wildcard matching files;
-N Displays the file that will be added but does not change the metabase record
Note: P4 Submit files are added to the repository; P4 Add You cannot use wildcard characters after a "..." ( ... by perforce Server provided)
[ example 1]
$ P4 Add *
Add all files in the current directory
[ example 2]
$ P4 Add-f *.sh
Increase the file at the end of all. Sh in the current directory
[ example 3]
$ find. -type F-print | P4-x-Add
Add files from directories and subdirectories to Repository
Perforce Upload Folder