HI purpletree
Welcome to the wonderful world of Linux Mint and its excellent forum!
Any files or folders that start with a period (dot) are "hidden" files and folders. The file managers like Dolphin can show hidden files as well, click View and Hidden files, or add the Hidden files button to its toolbar to toggle that off and on.
The first two items are almost always part of a folder and subfolder "." (current folder directory) and ".." (one folder up from current folder). If I remember correctly, that is the same with MS Windows.
The hidden lock file is created when you are in an application due to file locking to protect it. If you had to abort the application program or forcibly restart (reboot) your system, then sometimes the lock files will remain and can be safely deleted.
I do not see 40 files in your results? That is probably the total bytes (size) of the files.
ExcIuding the "." and "..", I only have three in my "/Documents/kp" folder where I store the KeePassX database files, it only shows 2 files if I run "ls -lh".
>ls -lha
total 348K
drwxrwxr-x 2 user69 user69 4.0K Apr 20 16:54 .
drwxr-xr-x 32 user69 user69 4.0K Apr 20 14:41 ..
-rw-r--r-- 1 user69 user69 240 May 19 2017 (conflicted).directory
-rw-r--r-- 1 user69 user69 269 Apr 20 16:54 .directory
-rw------- 1 user69 user69 332K Mar 23 22:23 something.kdbx
or
ls -lh
total 336K
-rw-r--r-- 1 user69 user69 240 May 19 2017 (conflicted).directory
-rw------- 1 user69 user69 332K Mar 23 22:23 something.kdbx
Linux is a very secure operating system and has "permissions" assigned to folder and files for user(s) access and "root" superuser access.
I also use 3 different cloud providers and their Linux software clients, excellent "pCloud", excellent "Mega.nz", and Google's Drive using the superb "InSync" client, to sync my stuff like KeePassX database files, AutoKey shortcut folders, etc... This will occasionally create a conflicted directory folder entry which I usually delete, I am not sure why.
What do the fields in ls -al output mean? - Unix & Linux Stack Exchange
https://unix.stackexchange.com/question ... utput-mean
what means a dot after the file permission ?
https://www.linuxquestions.org/question ... on-796947/
ls command in Linux/Unix | list files/directories
https://www.rapidtables.com/code/linux/ls.html
Hope this helps ...