Comments (4)
The symlinkTargetName
and symlinkTargetNameNoExt
were added at the request of another user who was trying to use TMSU with Git Annex.
Yes it would be possible to fall back to regular hashing in the case of regular files but as you have expressed this would be somewhat hard to configure with the current set-up. One solution is the comma-seperated list of preferences as you proposed; another would be to split out the configuration of the hash algorithm for each type of file. Already TMSU allows files and directories to be configured separately so perhaps this could be extended to allow symbolic links to be separately configured?
from tmsu.
In the best case, tmsu could also fall-back to its regular behavior when the file is a symlink, but the target name is not βspecialβ.
This would be a lot more complex to implement and configure but I will have a think about how it could work.
from tmsu.
So what I've done is to:
- Remove support for the
symlinkTargetName
andsymlinkTargetNameNoExt
values of thefileFingerprintAlgorithm
setting. - Added a new setting called
symlinkFingerprintAlgorithm
with the following possible values:none
-- use empty fingerprintsfollow
-- use the fingerprint of the target file (default)targetName
-- use the target file's nametargetNameNoExt
-- use the target file's name with the extension removed
- Added automatic upgrade logic to populate
symlinkFingerprintAlgorithm
wherefileFingerprintAlgorithm
is currentlysymlinkTargetName
orsymlinkTargetNameNoExt
. The only thing to note with this is that it will also then delete thefileFingerprintAlgorithm
setting such that the default will be used for regular files. - Updated the wiki.
from tmsu.
This makes the symlink handling more consistent! Thanks!
from tmsu.
Related Issues (20)
- Pls consider making this tool available on conda HOT 1
- tmsu-fs-mv may overwrites files it cannot update internally HOT 4
- key-value tags will not work with rename HOT 5
- `tmsu tags --name=never` seems to imply `-1` HOT 1
- How can I delete values? HOT 4
- Need python example on how to import the tags for a file from a sqlite database into TMSU HOT 1
- Confusing status command behavior HOT 1
- ...
- Duplicated tags in file system HOT 1
- Repair files by automatically locating files based on checksum? HOT 2
- List all the tags with values HOT 11
- small contribution: sc-im interface for changing tmsu tags HOT 2
- Question: what does the error message mean? HOT 3
- --name=never removes lines HOT 2
- database locked occasionally
- VFS can be very slow
- Feature Request in VFS: Listing files outside of the `files` folder and hiding `queries` folder
- Cannot install TMSU HOT 1
- Package available in Void Linux
- too many SQL variables - transport endpoint is not connected when too many tag values exist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmsu.