diff options
author | B Stack <bgstack15@gmail.com> | 2021-02-12 15:02:03 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-02-12 16:21:55 -0500 |
commit | 1da327b0156f47bbe570378df29238ae80530870 (patch) | |
tree | dc3fe86501c3bbb55b2b35159ca2beed39b63d07 /README.md | |
download | s2s-1da327b0156f47bbe570378df29238ae80530870.tar.gz s2s-1da327b0156f47bbe570378df29238ae80530870.tar.bz2 s2s-1da327b0156f47bbe570378df29238ae80530870.zip |
initial commit
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..08d7a7d --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# README for shortcut2symlink project +## Overview +A Windows client is used to maintain a website/ subdirectory of files that will be processed using the [gallery](https://gitlab.com/bgstack15/gallery) project. To facilitate the process of preparing files for this website/ subdirectory, particularly over a wireless network connection, users have been instructed to just make Windows-style shortcuts (using CTRL+SHIFT dragging) in the website subdirectory in whatever layout desired. + +This project includes components that will scan the designated directory for .lnk files anywhere underneath, and interpret their targets, and generate symlinks in place of the .lnk files. + +The point of using symlinks in this case is to reduce the disk usage and number of duplicate files and directories. To SMB users on the Windows client, the symlink files will look like copies, but that is acceptable because the main focus is the gallery generation for the web server. + +## shortcut2symlink upstream +[s2slib](https://gitlab.com/bgstack15/s2slib) + +## Alternatives +This appears to be original work with no alternatives. I have not found other places on the Internet where a user wants to interpret a .lnk file and substitute with a Linux-style symbolic link. + +## Reason for existence +Reduce disk space by removing duplicate files, while still having a whole directory structure readable by the gallery solution for generating static site pages. + +## How to use +On a Devuan Ceres system with nfs access to the filesystem, run s2s-inotify.sh after configuring its watchfile settings and commands. + + /mnt/public/Support/Programs/shortcuts/s2s-inotify.sh /mnt/public/Images/username1-photos/website 2>&1 | tee -a /mnt/public/Support/Programs/shortcuts/log1 + +## Dependencies +Distro | Packages +--------------- | ----------------------------- +Devuan Ceres | python3-liblnk, inotify-tools + +## References +[.lnk format reference](https://github.com/libyal/liblnk/blob/main/documentation/Windows%20Shortcut%20File%20(LNK)%20format.asciidoc) + +## Differences from upstream +N/A |