Code Monkey home page Code Monkey logo

dugu's People

Contributors

deadsoul avatar veggievampire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dugu's Issues

undocumented python version

[/unsorted/scans] python3 /root/py/dugu/src/dugu.py  ## python 3.5
Traceback (most recent call last):
  File "/root/py/dugu/src/dugu.py", line 23, in <module>
    from dugu.main import DuGuMain
  File "/root/py/dugu/src/dugu/main.py", line 78
    p(f"Current memory usage is {current / 10 ** 6}MB; Peak was {peak / 10 ** 6}MB")
                                                                                  ^
SyntaxError: invalid syntax
[/unsorted/scans] python3.8 /root/py/dugu/src/dugu.py
Minimum required Python version is: 3.8.6 not 3.8.4

Took: 0.015789298922754824 seconds
Current memory usage is 0.049036MB; Peak was 0.04926MB

undocumented file cache

It's possible I missed it but it looks like dugu read/writes to /tmp/dugu_root and this isn't documented.

I can't see an option to change this behavior (I've not debugged build_path())

Cache is not always loaded even if it is valid

If a relative path used when cache is generated, the cache won't be available unless the same relative path is being called in the next scan.

for example (first scan):
we're in /home/deadsoul/Documents, and we would like to scan /home/deadsoul/Pictures:

dugu scan ../Pictures

if we repeat dugu scan ../Pictures it should take advantage of the generated cache.
But if we're in /home/deadsoul and tried to dugu scan Pictures it will re-generate another cache. since '../Picutres' is not equal to 'Pictures'. which means dugu scan /home/deadsoul/Pictures should generate another cache.

and the same thing should apply if the scanned target directory is a link.

Suggested solution:
convert the given target-directory to its absolute path.

precopy takes long time if DIR1 is huge

it takes long time because the time is being wasted in copying the whole DIR1 !!

the way precopy works now is:

  1. copying the whole DIR1 to DIR1/_UniqueFiles_
  2. exclude the existing files in DIR2 from DIR1/_UniqueFiles_ by removing them

while it should be like

  1. copying only the directory structure of DIR1
  2. copying only the unique files

because we're wasting time by copying all the files, then removing some of them. instead we should only copy unique files

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.