move2archive


Namemove2archive JSON
Version 2023.7.15.1 PyPI version JSON
download
home_pagehttps://github.com/novoid/move2archive
SummaryManaging event-related files in a folder hierarchy like <ARCHIVE>/2013/2013-05-17 Event name/
upload_time2023-07-15 16:45:24
maintainer
docs_urlNone
authorKarl Voit
requires_python
license
keywords file managing file management files date time time-stamps
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            This script moves items (files or directories) containing ISO datestamps
like "YYYY-MM-DD" into a directory stucture for the corresponding year.

You define the base directory either in this script (or using the
command line argument "--archivedir"). The convention is e.g.:

- <archivepath>/2009
- <archivepath>/2010
- <archivepath>/2011

By default, this script extracts the year from the datestamp of
each file and moves it into the corresponding directory for its year:

     m2a 2010-01-01_Jan2010.txt 2011-02-02_Feb2011.txt
... moves "2010-01-01_Jan2010.txt" to "<archivepath>/2010/"
... moves "2011-02-02_Feb2011.txt" to "<archivepath>/2011/"

OPTIONALLY you can define a sub-directory name with option "-d DIR". If it
contains no datestamp by itself, a datestamp from the first file of the
argument list will be used. This datestamp will be put in front of the name:

     m2a  -d "2009-02-15 bar"  one two three
... moves all items to: "<archivepath>/2009/2009-02-15 bar/"

     m2a  -d bar  2011-10-10_one 2008-01-02_two 2011-10-12_three
... moves all items to: "<archivepath>/2011/2011-10-10 bar/"

If you feel uncomfortable you can simulate the behavior using the "--dryrun"
option. You see what would happen without changing anything at all.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/novoid/move2archive",
    "name": "move2archive",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "file managing,file management,files,date,time,time-stamps",
    "author": "Karl Voit",
    "author_email": "tools@Karl-Voit.at",
    "download_url": "https://github.com/novoid/move2archive/zipball/master",
    "platform": null,
    "description": "This script moves items (files or directories) containing ISO datestamps\nlike \"YYYY-MM-DD\" into a directory stucture for the corresponding year.\n\nYou define the base directory either in this script (or using the\ncommand line argument \"--archivedir\"). The convention is e.g.:\n\n- <archivepath>/2009\n- <archivepath>/2010\n- <archivepath>/2011\n\nBy default, this script extracts the year from the datestamp of\neach file and moves it into the corresponding directory for its year:\n\n     m2a 2010-01-01_Jan2010.txt 2011-02-02_Feb2011.txt\n... moves \"2010-01-01_Jan2010.txt\" to \"<archivepath>/2010/\"\n... moves \"2011-02-02_Feb2011.txt\" to \"<archivepath>/2011/\"\n\nOPTIONALLY you can define a sub-directory name with option \"-d DIR\". If it\ncontains no datestamp by itself, a datestamp from the first file of the\nargument list will be used. This datestamp will be put in front of the name:\n\n     m2a  -d \"2009-02-15 bar\"  one two three\n... moves all items to: \"<archivepath>/2009/2009-02-15 bar/\"\n\n     m2a  -d bar  2011-10-10_one 2008-01-02_two 2011-10-12_three\n... moves all items to: \"<archivepath>/2011/2011-10-10 bar/\"\n\nIf you feel uncomfortable you can simulate the behavior using the \"--dryrun\"\noption. You see what would happen without changing anything at all.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Managing event-related files in a folder hierarchy like <ARCHIVE>/2013/2013-05-17 Event name/",
    "version": "2023.7.15.1",
    "project_urls": {
        "Download": "https://github.com/novoid/move2archive/zipball/master",
        "Homepage": "https://github.com/novoid/move2archive"
    },
    "split_keywords": [
        "file managing",
        "file management",
        "files",
        "date",
        "time",
        "time-stamps"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4b67945c7cbf766d0cdcf083e9232a3f2c5b18d6079da86ea801f6cbfa35de37",
                "md5": "6d736b24595358d9c8aa57f34d947527",
                "sha256": "4625c21a0460278659b5001b5e09c88ae2d0012d5761be7752371299aea1b071"
            },
            "downloads": -1,
            "filename": "move2archive-2023.7.15.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6d736b24595358d9c8aa57f34d947527",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10100,
            "upload_time": "2023-07-15T16:45:24",
            "upload_time_iso_8601": "2023-07-15T16:45:24.339118Z",
            "url": "https://files.pythonhosted.org/packages/4b/67/945c7cbf766d0cdcf083e9232a3f2c5b18d6079da86ea801f6cbfa35de37/move2archive-2023.7.15.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-15 16:45:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "novoid",
    "github_project": "move2archive",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "move2archive"
}
        
Elapsed time: 0.08795s