thanos-py

😈When I'm done, half of files will still exist.


License
MIT
Install
pip install thanos-py==0.6

Documentation

thanos-py

νƒ€λ…ΈμŠ€κ°€ λ‹Ήμ‹ μ˜ 컴퓨터에 λ„μ°©ν–ˆμ–΄μš”! κ·ΈλŠ” λ‹Ήμ‹ μ˜ νŒŒμΌμ„ νŒŒκ΄΄ν•˜λŸ¬ μ™”μ–΄μš”..! κ·ΈλŠ” λ‹Ήμ‹ μ˜ νŒŒμΌμ€‘ μ ˆλ°˜μ„ 건틀렛과 ν•¨κ»˜ 손을 νŠ•κ²¨μ„œ λ‚ λ €λ²„λ¦΄κ±°μ—μš”..! 당신이 정말 μš΄μ΄μ’‹λ‹€λ©΄, κ·ΈλŠ” 별 μ€‘μš”ν•˜μ§€ μ•Šμ€ νŒŒμΌλ“€λ§Œ 날렀버리겠죠? ν–‰μš΄μ„ λΉŒμ–΄μš” :D

https://blog.hanukoon.com/thanos.py 곡식 ν™ˆνŽ˜μ΄μ§€μ—μš” ㅇㅁㅇ

Install

pip install thanos-py

Usage

  • remove root dir : thanos-py /
  • another location : thanos-py /Your/Own/Location/

Technical Details

  • κ·Έλž˜μš”, 이건 νŒŒμΌμ„ μ§€μ›Œμ€˜μš” [ 이 νŒ¨ν‚€μ§€κ°€ 무엇을 ν•˜λŠ”μ§€ 잘 λͺ¨λ₯΄λŠ” μ‚¬λžŒμ„ μœ„ν•˜μ—¬ (μ°‘κΈ‹)]
  • 이것은 os.remove() ν•¨μˆ˜λ₯Ό ν†΅ν•΄μ„œ νŒŒμΌμ„ μ§€μ›Œμš”
  • 이것은 λͺ…령이 μ‹€ν–‰λœ λ””λ ‰ν† λ¦¬μ˜ λͺ¨λ“  ν•˜μœ„λ””λ ‰ν† λ¦¬λ₯Ό λŒμ•„λ‹€λ…€μš”. κ·ΈλŸ¬λ‹ˆ ν΄λ”μ•ˆμ— μžˆλŠ” νŒŒμΌλ„ μ§€μ›Œμ§ˆ 수 μžˆμ–΄μš”
  • 이것이 μ •ν™•ν•˜κ²Œ 2/1개의 νŒŒμΌμ„ μ§€μšΈμ§€λŠ” 저도 잘 λͺ¨λ₯΄κ² μ–΄μš” (μ•Ό!!)
search(target)
random.shuffle(filelist)
print("[😈] Death note is ready...")
filecount = len(filelist)
for i in range(0, int(filecount / 2)):
    deletelist.append(filelist[i])
    print (deletelist[i])
for i in range(filecount + 1):
    os.remove(str(deletelist[i]))
	// logic to delete the file
}

첨언

컨셉은 thanosjs.org μ—μ„œ λ”°μ™”μ–΄μš” ㅇㅁㅇ.. 사싀상 거의 λΉ„μŠ·ν•œλ° μ œκ°€ 인자λ₯Ό 잘 닀룰쀄 λͺ°λΌμ„œ thanos.js 처럼 μΈν”Όλ‹ˆν‹° 건틀렛 인자λ₯Ό 어캐받아야할지 잘 λͺ¨λ₯΄κ² μ–΄μš” ㅇㅁㅇ.. "--" ν•΄μ„œ λ°›λŠ” μΈμžλž‘ κ·Έλƒ₯ λ°›λŠ” μΈμžλž‘ λ°›μ„λ•Œ "--" ν¬ν•¨μ‹œμΌœμ„œ λ°›μœΌλ©΄ λ˜λŠ”κ±΄κ°€..ㅇㅁㅇ..