I have a file management problem and would like to find a smarter and more dynamic solution, but that is beyond my current skills.
I have a local Pi3 server running samba, with two shared folders.
Code: Select all
Folder 01: Private folder containing default files for users;
Folder 02: Public folder containing the default files and other users files.Code: Select all
cp /home/pi/adm-priv/file-def01.png /home/pi/public/file-def01.png
cp /home/pi/adm-priv/file-logo.png /home/pi/public/file-logo.pngExample:
Code: Select all
**Today** > the files are in the /public
**Tomorrow** > for the users' reasons, the files are in the /public/tests_01
**On another day** > the files may be in /public/tests_01 and /public/test_02My problem is how to run a smart boot service, which looks for the all location of the default files and changes them.
** The "default files/default folder" is one folder with 13 png files, but maybe folder change the name.. Files never change name. So, finding one file, we find the folder with all files.
I tried find files with command:
Code: Select all
find . -name filename.extensionI need help!