Directory access checker for linux systems:
- Takes some directory as argument.
- Checks if the given folder exists. If no, tries to create it.
- Checks if program has permissions to create files int the directory.
- Checks if another instance of application is already using the directory.
- If another instance of application is already using the directory returns -1.
cd dir_with_exe
./DirAcC dir_to_lock
where dir_with_exe is a directory where the executable is located
,
and dir_to_lock is a directory you want to lock and check.
cmake and compiler supporting C++17.
git clone https://github.com/denhrulyov/DirAcC
cd DirAcC
cmake .
cmake --build .