Giter Site home page Giter Site logo

get-hddinfo's People

Contributors

typicaltim avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

get-hddinfo's Issues

User list limitations in the CSV file

Problem

When the first HDD is scraped, however many users are found on that drive will be the maximum number of users that will be cataloged for every subsequent drive regardless of how many are found.

Example

$Drive1 is the first to be scraped for info, $userA and $userB were found. So $Drive1 will be cataloged as such:

HDDIndexNumber : 1
Hostname : $Hostname1
User1 : $userA
User2: $userB

$Drive2 is scanned second; $userC, $userD, and $userE were found. Unfortunately $Drive2 will be cataloged in this way:

HDDIndexNumber : 1
Hostname : $Hostname1
User1 : $userC
User2: $userD

Proposed Solutions

A.) When the Catalog file is first created, write all of the headers beforehand and create space for 100 users. This is in no way a perfect solution. If for some reason more than 100 users are found on a drive, users 101+ will not be cataloged. Also, querying the CSV for information might be slightly more annoying if 80% of the user columns are null.

B.) Figure out a way to create a new column(s) if the user count is greater than the number of user columns when a drive is scraped and written to the catalog.

Empty drives do not return property information before user prompt

Problem

If a drive is empty/non-existent when scanned, for some reason he script will not show the $SavedHDDInformation variable before prompting the user if it's okay to save. It prompts before showing the variable, which means the user can't verify the data is accurate and approve it.

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.