本文整理汇总了C#中Path.attributes方法的典型用法代码示例。如果您正苦于以下问题:C# Path.attributes方法的具体用法?C# Path.attributes怎么用?C# Path.attributes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Path
的用法示例。
在下文中一共展示了Path.attributes方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetWarningImage
public override object GetWarningImage(Path path)
{
if (path.attributes().isFile())
{
if (path.attributes().getSize() == 0)
{
return AlertIcon;
}
if (path.attributes().getSize() > path.getLocal().attributes().getSize())
{
return AlertIcon;
}
}
return null;
}
示例2: GetSize
public override object GetSize(Path path)
{
Comparison compare = ((SyncTransfer) Transfer).compare(path);
return compare.equals(Comparison.REMOTE_NEWER)
? path.attributes().getSize()
: path.getLocal().attributes().getSize();
}
示例3: GetSize
public override object GetSize(Path path)
{
return path.attributes().getSize();
}
示例4: DuplicateFile
private void DuplicateFile(Path selected, String filename, bool edit)
{
Path duplicate = PathFactory.createPath(Session, selected.getParent().getAbsolute(), filename, selected.attributes().getType());
BrowserController.DuplicatePath(selected, duplicate, edit);
}
示例5: GetModified
public object GetModified(Path path)
{
long modificationDate = path.attributes().getModificationDate();
if (modificationDate != -1)
{
return UserDefaultsDateFormatter.ConvertJavaMillisecondsToDateTime(modificationDate);
}
return UNKNOWN;
}
示例6: GetPermission
public object GetPermission(Path path)
{
Permission permission = path.attributes().getPermission();
if (null == permission)
{
return _unknown;
}
return permission.toString();
}
示例7: GetOwner
public object GetOwner(Path path)
{
return path.attributes().getOwner();
}
示例8: GetGroup
public object GetGroup(Path path)
{
return path.attributes().getGroup();
}
示例9: GetSyncGetter
public override object GetSyncGetter(Path path)
{
if (path.attributes().isDirectory())
{
if (path.exists() && path.getLocal().exists())
{
return null;
}
}
Comparison compare = ((SyncTransfer) Transfer).compare(path);
if (compare.equals(Comparison.REMOTE_NEWER))
{
return IconCache.Instance.IconForName("transfer-download", 16);
}
if (compare.equals(Comparison.LOCAL_NEWER))
{
return IconCache.Instance.IconForName("transfer-upload", 16);
}
return null;
}