Please provide a written discussion of code, what are its strengths

  

Given a directory containing say a few thousand files, please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.

Don't use plagiarized sources. Get Your Custom Essay on
Please provide a written discussion of code, what are its strengths
Just from $13/Page
Order Essay

func(a_directory_name) output -> {“matches”: [[fn1, fn2 …], [fn3, fn4 …] … ]}

e.g. func(“/home/my/files”) where the directory /home/my/files might contain foo.txt, foo.iso, foo.jpeg, bar.txt, bar.doc, baz.csv, baz.ppt etc. and say the file foo.txt is the same as bar.doc and foo.iso is the same as baz.csv and baz.ppt then the output would be:

{

   “matches”: [

       [

           “foo.txt”,

           “bar.doc”

       ],

       [

           “foo.iso”,

           “baz.csv”,

           “baz.ppt”

       ]

   ]

}

You may code the response in any programming language you like, however our primary languages are:

·        Bash

·        Perl

·        Python

·        Groovy

Please provide a written discussion of your code, what are its strengths and weaknesses, what are the boundary conditions where it will fail and where could it be improved

Calculator

Calculate the price of your paper

Total price:$26
Our features

We've got everything to become your favourite writing service

Need a better grade?
We've got you covered.

Order your paper