Coder Social home page Coder Social logo

archiveserveur's Introduction

ArchiveServeur

ArchiveServeur est notre implémentation du projet de LO14 à l'UTT, au semestre A21.

L'objectif de ce projet est de créer une commande nommée vsh qui permet la communication avec un serveur d'archive. Une description des contraintes du projet peut se trouver ici.

Les Fonctions

  • Lister les archives présentes sur le serveur.
  • Créer une archive à partir du répertoire courant.
  • Naviguer à travers une archive à distance sur le serveur à l'aide d'un shell personnalisé.
  • Restaurer le contenu d'une archive.

Contenu

Les Modes de Fonctionnement

La commande vsh comporte 4 modes de fonctionnement, accessible grace à un argument de ligne de commande correspondant.

Le mode list

vsh -list nom_serveur port

Le mode create

vsh -create nom_serveur port nom_archive

Le mode browse

vsh -browse nom_serveur port nom_archive

Le mode extract

vsh -extract nom_serveur port nom_archive

Le Fichier Archive

Une archive est un fichier qui permet de représenter l'arborescence d'un répertoire et le contenu de tout les fichiers de cette arborescence. Chaque archive est en deux partie:

  • Un header qui décrit l'arborescence des fichiers
  • Un body qui décrit le contenu des fichiers

Exemple d'archive complète:

3:25

directory Exemple\Test\
A drwxr-xr-x 4096
B drwxr-xr-x 4096
toto1 -rwxr-xr-x 29 1 3
toto2 -rw-r--r-- 249 4 10
@
directory Exemple\Test\A
A1 drwxr-xr-x 4096
A2 drwxr-xr-x 4096
A3 drwxr-xr-x 4096
toto3 -rw-r--r-- 121 14 3
@
directory Exemple\Test\A\A1
toto4 -rw-r--r-- 0 17 0
@
directory Exemple\Test\A\A2
@
directory Exemple\Test\A\A3
@
directory Exemple\Test\B
bar -rw-r--r-- 202 17 6
@
#!\bin\bash

echo "bonjour!"
NAME

ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs.
DESCRIPTION
man formats and displays the on-line manual pages.
NAME
cat - concatenate files and print on the standard output
SYNOPSIS
cat [OPTION] [FILE]...
DESCRIPTION
Concatenate FILE(s), or standard input, to standard output.

archiveserveur's People

Contributors

blueted2 avatar i3at57 avatar

Watchers

 avatar

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.