Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: sdk/lib/io/file.dart

Issue 50313004: Revert "Remove @deprecated features." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/unittest/lib/src/iterable_matchers.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file.dart
diff --git a/sdk/lib/io/file.dart b/sdk/lib/io/file.dart
index 86d6cd6542edd9ed1587d3e6c44ca267c9553a77..174ca415d396471da819e941955b94e213f16905 100644
--- a/sdk/lib/io/file.dart
+++ b/sdk/lib/io/file.dart
@@ -80,6 +80,14 @@ abstract class File implements FileSystemEntity {
File renameSync(String newPath);
/**
+ * Get a [Directory] object for the directory containing this
+ * file. Deprecated: Replaced by [FileSystemEntity.parent].
+ * Will be removed on Oct 25, 2013.
+ */
+ @deprecated
+ Directory get directory;
+
+ /**
* Get the length of the file. Returns a [:Future<int>:] that
* completes with the length in bytes.
*/
@@ -148,6 +156,28 @@ abstract class File implements FileSystemEntity {
RandomAccessFile openSync({FileMode mode: FileMode.READ});
/**
+ * Get the canonical full path corresponding to the file path.
+ * Returns a [:Future<String>:] that completes with the path.
+ *
+ * *FullPath is deprecated. Use absolutePath or resolveSymbolicLinks
+ * instead. FullPath will be removed the 23rd of September, 2013.*
+ */
+ @deprecated
+ Future<String> fullPath();
+
+ /**
+ * Synchronously get the canonical full path corresponding to the file path.
+ *
+ * Throws a [FileSystemException] if the operation fails.
+ *
+ * *FullPathSync is deprecated. Use absolutePathSync or
+ * resolveSymbolicLinksSync instead. FullPathSync will be removed
+ * the 23rd of September, 2013.*
+ */
+ @deprecated
+ String fullPathSync();
+
+ /**
* Create a new independent [Stream] for the contents of this file.
*
* If [start] is present, the file will be read from byte-offset [start].
« no previous file with comments | « pkg/unittest/lib/src/iterable_matchers.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698