Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vsav

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vsav

save, restore, diff files by version.

  • 2.0.1
  • PyPI
  • Socket score

Maintainers
1

Save, Restore, Diff versions of files

Easily save and restore files while preserving the access and modification times of the original file.

Installation

python3 setup.py install

Version save

vsav file ...

Saves each file by making a copy. The saved filename is file.v.nnn where nnn is the highest version number found plus one.

Version numbers consist of 3 decimal digits with leading zeros if necessary. The initial version number is 000.

The saved file retains the access and modification times of the original file.

Use vres to restore saved files.

Version restore

vres file ...

Restores each file from the indicated version. If file has the form dest.v.nnn where nnn is a version number, then the file is restored from this version. Otherwise, the file is restored from its highest version.

Version numbers consist of 3 decimal digits with leading zeros if necessary.

The source file was presumably created using vsav. The destination file retains the access and modification times of the source file.

Version Diff

vdif file [diff-options] ...

Compares a previous version to the current version of the file using diff. Arguments after file are passed to diff.

If file has the form dest.v.nnn where nnn is a version number, then this version is compared to the current version:

diff [diff-options] ... dest.v.nnn dest

otherwise the highest version is compared to the current version:

diff [diff-options] ... file.v.nnn file

where nnn is the highest version number.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc