renamed vktag to filetag

This commit is contained in:
Karl Voit 2013-05-09 17:42:31 +02:00
parent 90ddb26a38
commit aecb5b4ed7
3 changed files with 17 additions and 9 deletions

View file

@ -1,8 +1,8 @@
## Time-stamp: <2013-05-09 16:37:45 vk>
## Time-stamp: <2013-05-09 17:42:06 vk>
## -*- coding: utf-8 -*-
## This file is best viewed with GNU Emacs Org-mode: http://orgmode.org/
* vktag.py
* filetag.py
This Python script adds or removes tags to file names in the following
form:
@ -45,14 +45,14 @@ GNU/Linux.
FIXXME: usage
: vktag.py --tag foo a_file_name.txt
: filetag.py --tag foo a_file_name.txt
... adds tag "foo" such that it results in ~foo a_file_name -- foo.txt~
: vktag.py --tag "foo bar" "file name 1.jpg" "file name 2 -- foo.txt" "file name 3 -- bar.csv"
: filetag.py --tag "foo bar" "file name 1.jpg" "file name 2 -- foo.txt" "file name 3 -- bar.csv"
... adds tag "foo" such that it results in ...
: "file name 1 -- foo bar.jpg" "file name 2 -- foo bar.txt" "file name 3 -- bar foo.csv"
: vktag.py --remove --tag foo "foo a_file_name -- foo.txt"
: filetag.py --remove --tag foo "foo a_file_name -- foo.txt"
... removes tag "foo" such that it results in ~foo a_file_name.txt~
* Contribute!

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time-stamp: <2013-05-09 17:11:42 vk>
# Time-stamp: <2013-05-09 17:40:38 vk>
## TODO:
## * fix parts marked with «FIXXME»
@ -148,7 +148,15 @@ def main():
error_exit(4, "I found option \"--interactive\" and option \"--remove\". \n" +
"Please choose either interactive mode OR specify tag(s) to remove together with the \"--tag\" option.")
sys.exit(0)
## extract list of tags
## FIXXME
## extract list of files
## FIXXME
## iterate over files
## FIXXME

View file

@ -1,12 +1,12 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time-stamp: <2013-05-09 17:38:22 vk>
# Time-stamp: <2013-05-09 17:41:54 vk>
## ~/src/vktag % PYTHONPATH="~/src/vktag:" tests/unit_tests.py --verbose
import unittest
import os
import vktag
import filetag
import tempfile
import os.path
from shutil import rmtree