Giter Site home page Giter Site logo

kubinka0505 / filedate Goto Github PK

View Code? Open in Web Editor NEW
46.0 3.0 6.0 171 KB

Simple, convenient and cross-platform file date changing library. ๐Ÿ“…

License: GNU General Public License v3.0

Python 98.52% Batchfile 1.48%
filedate file date change changer changing

filedate's Introduction

โ€ƒโ€ƒโ€ƒโ€ƒ


filedate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

filedate's Issues

Issue with os.path.expandvars and odd filenames

I stumbled upon this pretty recently, and thought to make a post to see if it was something the maintainers were interested in.

When instantiating a File class, if the file path has the substring "$$" somewhere in the path, it will be scrubbed by the init function for File due to os.path.expandvars.

Example:
Original path: "X:\TestFolder\TestSubFolder\check_request$$fromjim.pdf"
self.file in the class post initialization: Original path: "X:\TestFolder\TestSubFolder\check_request$fromjim.pdf"

I know this is probably a ridiculous edge case but technically "$$" is allowed in Windows for a document name so it will cause the file to not be found by the library.

This can be worked around by overriding the "file" property on the class in my testing.

Thanks!

Add possibility to use it in folders

Trying to use it in folders (windows), it produces a strange behavior, the "details" view shows the date correctly, but in properties it shows the actual date of creation of the folder.

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.