You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

antipathy

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antipathy - pypi Package Compare versions

Comparing version
0.84.1
to
0.84.2
+1
-1
antipathy.egg-info/PKG-INFO
Metadata-Version: 2.1
Name: antipathy
Version: 0.84.1
Version: 0.84.2
Summary: oo view of file paths and names, subclassed from bytes/str/unicode

@@ -5,0 +5,0 @@ Home-page: https://github.com/ethanfurman/antipathy

@@ -1,2 +0,2 @@

version = 0, 84, 1
version = 0, 84, 2

@@ -3,0 +3,0 @@ from .path import *

@@ -118,5 +118,3 @@ """

def chflags(cls, flags, files):
if isinstance(files, cls.base_types):
files = Path.glob(files)
for file in files:
for file in cls._ensure(files):
Path(file).chflags(flags)

@@ -127,5 +125,3 @@

"thin wrapper around os.chmod"
if isinstance(files, cls.base_types):
files = Path.glob(files)
for file in files:
for file in cls._ensure(files):
Path(file).chmod(mode)

@@ -136,5 +132,3 @@

"thin wrapper around os.chown"
if isinstance(files, cls.base_types):
files = Path.glob(files)
for file in files:
for file in cls._ensure(files):
Path(file).chown(uid, gid)

@@ -183,5 +177,5 @@

"""
if isinstance(files, cls.base_types):
files = Path.glob(files)
for file in files:
if not dst:
raise ValueError('invalid dst: <%s>' % (dst, ))
for file in cls._ensure(files):
Path(file).copy(dst)

@@ -247,5 +241,3 @@

def lchmod(cls, mode, files):
if isinstance(files, cls.base_types):
files = Path.glob(files)
for file in files:
for file in cls._ensure(files):
Path(file).lchmod(mode)

@@ -257,5 +249,3 @@

def lchflags(cls, files, flags):
if isinstance(files, cls.base_types):
files = Path.glob(files)
for file in files:
for file in cls._ensure(files):
Path(file).lchflags(flags)

@@ -267,5 +257,3 @@

def lchown(cls, files, uid, gid):
if isinstance(files, cls.base_types):
files = Path.glob(files)
for file in files:
for file in cls._ensure(files):
Path(file).lchown(uid, gid)

@@ -306,5 +294,5 @@

dst = Path(dst)
if isinstance(sources, cls.base_types):
sources = Path.glob(sources)
for source in sources:
if not dst:
raise ValueError('invalid dst: <%s>' % (dst, ))
for source in cls._ensure(sources):
Path(source).move(dst)

@@ -348,5 +336,3 @@ return dst

def removedirs(cls, subdirs):
if isinstance(subdirs, cls.base_types):
subdirs = Path.glob(subdirs)
for subdir in subdirs:
for subdir in cls._ensure(subdirs):
Path(subdir).removedirs()

@@ -364,5 +350,3 @@

def rmdir(cls, subdirs):
if isinstance(subdirs, cls.base_types):
subdirs = Path.glob(subdirs)
for subdir in subdirs:
for subdir in cls._ensure(subdirs):
Path(subdir).rmdir()

@@ -372,5 +356,3 @@

def rmtree(cls, subdirs, ignore_errors=None, onerror=None):
if isinstance(subdirs, cls.base_types):
subdirs = Path.glob(subdirs)
for subdir in subdirs:
for subdir in cls._ensure(subdirs):
Path(subdir).rmtree(ignore_errors=ignore_errors, onerror=onerror)

@@ -398,13 +380,8 @@

def touch(cls, names, times=None, no_create=False, reference=None):
if isinstance(names, cls.base_types):
names = Path.glob(names) or [names]
for name in names:
for name in cls._ensure(names, no_glob_okay=True):
Path(name).touch(None, times, no_create, reference)
@classmethod
def unlink(cls, names):
if isinstance(names, cls.base_types):
names = Path.glob(names)
for name in names:
for name in cls._ensure(names):
Path(name).unlink()

@@ -414,5 +391,3 @@

def utime(cls, names, times):
if isinstance(names, cls.base_types):
names = Path.glob(names)
for name in names:
for name in cls._ensure(names):
Path(name).utime(times)

@@ -439,4 +414,18 @@

yield dirpath, dirnames, filenames
@classmethod
def _ensure(cls, entries, no_glob_okay=False):
if not entries:
raise OSError(2, "No such file or directory: '%s'" % (entries, ))
o_entries = entries
if isinstance(entries, cls.base_types):
entries = Path.glob(entries)
if not entries and no_glob_okay:
entries = o_entries
if not entries:
raise OSError(2, "No such file or directory: '%s'" % (o_entries, ))
return entries
Path.base_types = bytes, str, unicode
class Methods(object):

@@ -443,0 +432,0 @@

Metadata-Version: 2.1
Name: antipathy
Version: 0.84.1
Version: 0.84.2
Summary: oo view of file paths and names, subclassed from bytes/str/unicode

@@ -5,0 +5,0 @@ Home-page: https://github.com/ethanfurman/antipathy

@@ -53,3 +53,3 @@ import setuptools

name='antipathy',
version='0.84.1',
version='0.84.2',
license='BSD License',

@@ -56,0 +56,0 @@ description='oo view of file paths and names, subclassed from bytes/str/unicode',