Browse Source

rename_to() and copy_to() are heavy operations and should be BLOCKING

David Rose 12 years ago
parent
commit
c32becb2a1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dtool/src/dtoolutil/filename.h

+ 2 - 2
dtool/src/dtoolutil/filename.h

@@ -213,8 +213,8 @@ PUBLISHED:
   bool chdir() const;
   bool chdir() const;
   bool touch() const;
   bool touch() const;
   bool unlink() const;
   bool unlink() const;
-  bool rename_to(const Filename &other) const;
-  bool copy_to(const Filename &other) const;
+  BLOCKING bool rename_to(const Filename &other) const;
+  BLOCKING bool copy_to(const Filename &other) const;
 
 
   bool make_dir() const;
   bool make_dir() const;
   bool mkdir() const;
   bool mkdir() const;