3 new commits in readFeeds:
https://bitbucket.org/nvdaaddonteam/readfeeds/commits/acaedd2973a9/
Changeset: acaedd2973a9
Branch: None
User: i-brahim
Date: 2019-07-04 06:12:10+00:00
Summary: enhancing doCopy function
Affected #: 1 file
diff --git a/addon/globalPlugins/readFeeds/__init__.py
b/addon/globalPlugins/readFeeds/__init__.py
index 0a74bce..14ab67c 100644
--- a/addon/globalPlugins/readFeeds/__init__.py
+++ b/addon/globalPlugins/readFeeds/__init__.py
@@ -56,8 +56,13 @@ def getActiveProfile():
return activeProfile
def doCopy(copyDirectory):
+ # to ensure that the removed directory will not be one of the main
directories such as documents or music or other important ones
+ if not os.path.basename(copyDirectory)== "personalFeeds":
+ copyDirectory=os.path.join(copyDirectory, "personalFeeds")
try:
- shutil.rmtree(copyDirectory, ignore_errors=True)
+ if os.path.exists(copyDirectory):
+ #if it exists, only personalFeeds folder will be
remove, which is the base name of copyDirectory path
+ shutil.rmtree(copyDirectory, ignore_errors=True)
shutil.copytree(FEEDS_PATH, copyDirectory)
core.callLater(100, ui.message,
# Translators: Message presented when feeds have been
copied.
https://bitbucket.org/nvdaaddonteam/readfeeds/commits/1a9b078a57f8/
Changeset: 1a9b078a57f8
Branch: None
User: norrumar
Date: 2019-07-06 02:34:55+00:00
Summary: Fix tipo in comment
Affected #: 1 file
diff --git a/addon/globalPlugins/readFeeds/__init__.py
b/addon/globalPlugins/readFeeds/__init__.py
index 14ab67c..10228d8 100644
--- a/addon/globalPlugins/readFeeds/__init__.py
+++ b/addon/globalPlugins/readFeeds/__init__.py
@@ -61,7 +61,7 @@ def doCopy(copyDirectory):
copyDirectory=os.path.join(copyDirectory, "personalFeeds")
try:
if os.path.exists(copyDirectory):
- #if it exists, only personalFeeds folder will be
remove, which is the base name of copyDirectory path
+ #if it exists, only personalFeeds folder will be
removed, which is the base name of copyDirectory path
shutil.rmtree(copyDirectory, ignore_errors=True)
shutil.copytree(FEEDS_PATH, copyDirectory)
core.callLater(100, ui.message,
https://bitbucket.org/nvdaaddonteam/readfeeds/commits/906649900838/
Changeset: 906649900838
Branch: master
User: norrumar
Date: 2019-07-06 02:35:26+00:00
Summary: Merge branch 'copy'
Affected #: 1 file
diff --git a/addon/globalPlugins/readFeeds/__init__.py
b/addon/globalPlugins/readFeeds/__init__.py
index 0a74bce..10228d8 100644
--- a/addon/globalPlugins/readFeeds/__init__.py
+++ b/addon/globalPlugins/readFeeds/__init__.py
@@ -56,8 +56,13 @@ def getActiveProfile():
return activeProfile
def doCopy(copyDirectory):
+ # to ensure that the removed directory will not be one of the main
directories such as documents or music or other important ones
+ if not os.path.basename(copyDirectory)== "personalFeeds":
+ copyDirectory=os.path.join(copyDirectory, "personalFeeds")
try:
- shutil.rmtree(copyDirectory, ignore_errors=True)
+ if os.path.exists(copyDirectory):
+ #if it exists, only personalFeeds folder will be
removed, which is the base name of copyDirectory path
+ shutil.rmtree(copyDirectory, ignore_errors=True)
shutil.copytree(FEEDS_PATH, copyDirectory)
core.callLater(100, ui.message,
# Translators: Message presented when feeds have been
copied.
Repository URL: https://bitbucket.org/nvdaaddonteam/readfeeds/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.