GithubHelp home page GithubHelp logo

upwork_project_6_5_2022's Introduction

Upwork client project repository

Short description:

run_me.py allows for files that are not links and have very long names, rename their name to new - shorter names and create old long named files, but this time they are soft/symbolic links to new short-name-having files.

Name shortening happens for file name only, extensions remain unchanged:

Example:  

structure of folder before:

. file_1.py                                                        # file with short name
. loooooooooooooooooooooooooooooooooooooooooooooong_file.py        # file with long name

Structure of folder after:

. file_1.py                                                        # not changed
. loooooooooooooooooooooooooooooooooooooooooooooong_file.py        # old file name still exists, but now it is a soft link to smaller name-having file below this line 
. looooooooooooooooooooooooooooooooo.py                            # file that upper file links to

Make sure to not change max_allowed_filename_length argument in run_me.py after running in some folder once

You should run run_me.py with &>> or other redirection operators to save logs to a file for future debugging purposes

Here you also see _demo_folder_with_files testing folder that can be used to see how everything works for really long-name-having files

When running run_me.py file, pass full folder path that you want to process, for example:

/usr/bin/python3 run_me.py /home/your_name/some_folder_on_our_pc earlier_than_now_minus_hours_number  &>> your_log_file_location.log

upwork_project_6_5_2022's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.