novoid / appendfilename

Intelligent appending text to file names, considering file extensions and file tags
GNU General Public License v3.0
50 stars 7 forks source link

--smart-prepend option behaves like --prepend option when path is absolute #16

Open pingebat opened 1 year ago

pingebat commented 1 year ago

OS: Windows 10 Installed via: pip I am happy to provide more information if needed.


Calling appendfilename with --smart-prepend option works as expected when given relative path:

appendfilename --smart-prepend relative/path/to/"2023-02-14 file.txt"
      ... with interactive input of "beginning" results in:
      "2023-02-14 beginning file.txt"

However, calling it with an absolute path ignores the timestamp and acts like normal --prepend option:

appendfilename --smart-prepend absolute/path/to/"2023-02-14 file.txt"
      ... with interactive input of "beginning" results in:
      "beginning 2023-02-14 file.txt"