Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Added restore50 to bin. This script restores deleted files. #266

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Jun 22, 2018

  1. Added restore50 to bin. This script restores deleted files.

    # restore50
    This script can restore deleted files in a Cloud9 workspace. This only works for files that you edited in the cloud9 editor.
    
    It mines the versioning database and looks for files that are in this database but not in the file system.
    
    # Example usage
    	$ restore50
    	The following files can be restored:
    
    	file# | last modified  | filename
    	------|----------------|------------------------------------------
    	    0 | (Wed 02-14-18) | ~/workspace/pset1/some-file-I-deleted.c
    	    1 | (Wed 04-04-18) | ~/workspace/pset1/some-other-file-I-deleted.c
    	------------------------------------------------------------------
    	Enter file# to restore (or anything else to quit): 0
    	Restored ~/workspace/pset1/some-file-I-deleted.c
    	------------------------------------------------------------------
    	Enter file# to restore (or anything else to quit): q
    	1 file restored
    simonpauw committed Jun 22, 2018
    Configuration menu
    Copy the full SHA
    509a236 View commit details
    Browse the repository at this point in the history